Skip to content

贡献约定成文:GNU oracle 5.3.0、无窗口探针、共享环境零变更、PR 前全量、GPL 纪律、流程(给 a-rookie-of-C-language 与后续维护者) #892

Closed

Description

@caomengxuan666

贡献约定(给 a-rookie-of-C-language 与后续维护者)——把评审与发版的隐性规则成文

你连日的 PR 质量很高(#885/#886 已合并,#887/#888/#889/#890 评审中)——四张票全是在收我们的账。这张票把评审与发版流程里的隐性规则成文,照做能让你的 PR 一次过审、更快合并。

1. GNU oracle 必须是 5.3.0(最重要)

行为验证的权威 oracle = GNU bash 5.3.0(WSL /usr/local/bin/bash,owner 编译;注意 WSL /usr/bin/bash 是 5.2.21、Git Bash 是 5.2.x、winuxcmd .../bash.exe 是 niu 伪装——三者都不可作 oracle)。5.2 验证的行为主张一律视为未验证:#884 的八进制 BLOCKER(setaf 010)正是 5.2 oracle 漏网的实例。我们的评审代理会用 5.3.0 独立重验所有行为主张。

2. 无窗口探针(owner 正盯着桌面)

本机探针/测试禁止逐形态起 wsl.exe 或可见控制台进程(会闪用户的桌面)。规范:单个 python 脚本批量跑完全部形态 + subprocess.CREATE_NO_WINDOW (0x08000000) + 输出重定向文件;构建/ctest 长任务同样落文件。

3. 共享环境零变更

不改 PATH/env/全局配置、不留常驻进程;探针沙盒自建自清(Test-Path 见证)。多代理与用户共享这台机器——你改的环境会被别人踩到(#794 分诊时 C:\e 影子目录就污染过两轮评审的证据链)。

4. PR 前跑全量套件

cargo test --no-fail-fast -- --test-threads=1 与 pristine master 基线双向对比,失败集一致才开 PR。#883 收尾时发现 26 条新测试里 4 条断言从未被全量验证过(其中 4 条期望值本身是错的)——全量跑是唯一的暴露手段。

5. GPL 纪律

行为坐标引用(printf.def:1427、subst.c:3950)合法且是惯例;GPL C 代码/逐行翻译严禁入仓。注意坐标以**本仓 vendored mirror(b4608166)**为准(例:comsub_shouldquote 在 mirror 是 6643,pristine tarball 是 6641——别引错基线)。

6. 流程

  • WIP 及时 commit+push(pre-commit 有 fmt 钩子;首次 commit 被 fmt 静默拒绝是常见坑);
  • PR 会由我们的评审代理独立验证(含对抗探针),REQUEST-CHANGES 项由 PR 作者修复;
  • 多 PR 并行时注意 regression-catalog/manifest.tsv 的连锁冲突(后合并者重解即可,双方行都保留)。

现状

#885/#886 已合并(#872/#716 关闭);#887/#888/#889/#890 评审意见已挂在各 PR 评论——按评论修复即可,我们不再代修。辛苦了,这批贡献质量很好。

Activity

  1. caomengxuan666 commented on Oct 19, 2026

    @caomengxuan666
    MemberAuthor

    更新一下 选择最新版本的bash即可

  2. arookieofc commented on Oct 19, 2026

    @arookieofc
    Member

    PR #903 opened and all lanes green. The six rules are now written in CONTRIBUTING.md as a new review-gate section, generalized from the contributor-specific note (no in-flight PR numbers, no review-agent arrangement): 5.3.0-only oracle with script-file comparison and owning-C-function evidence, windowless probes, shared-env zero-change, pre-PR full suite with pristine-master bidirectional baseline, GPL discipline against the vendored mirror, and process (one branch per issue, evidence in PR description, manifest.tsv keep-both-sides, maintainer merges). Agent-facing detail stays in AGENTS.md. Docs-only change; compat ledger untouched by construction.

  3. added a commit that references this issue on Oct 20, 2026
  4. added a commit that references this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions