Repository navigation
Closed
Description
条目与来源
- P1-p:维护者 2026-11-18 决定,把 Ankar 加入 DCO 签名名单。加入后,Ankar 可以在 PR 正文末尾签名、放行合并。
- 现状(P1-n,ci: enforce the maintainer DCO sign-off before merge via the PR body (P1-n) #197):
.github/dco-maintainers.txt只有一个signoff身份inpac <inpac@lingmatrix.cn>,以及代理提交所用的author身份。文件注释、CONTRIBUTING §11、PARALLEL-1 §5.2/§5.5 都写着“由维护者签名”。
基线
最新 main。
目标
- 在
.github/dco-maintainers.txt新增一行signoff Ankar <ankarnassia@lingmatrix.cn>。注释“The maintainer is the only signoff identity”改为如实列出两个签名身份,并说明谁可以签:维护者,以及维护者授权的人类协作者 Ankar。 - 同步文字表述,只改那些说“只有维护者签名”的句子,改为“维护者或签名名单中的协作者”:
- CONTRIBUTING §11(约 :110、:194、:197);
docs/08-governance/parallel-workflow.md§5.2(约 :141)、§5.5(约 :169);.github/pull_request_template.md末尾的提示注释;.github/workflows/dco.yml的头部注释(:18 附近)。- 同时写明:签名者按 DCO 1.1 为该贡献作确认;代理仍不得签名。
- 测试:在
tests/repository_hardening/test_check_dco.py中补一例,名单含两个signoff时,正文末尾为 Ankar 的签名也能通过。现有断言(名单含 inpac)保持不变。 docs/07-roadmap/current-status.md§9 新增一行(热点)。
非目标
- 不改
check-dco.py的检查逻辑。名单格式已支持多个signoff,若发现不支持,停下来报告。 - 不改“只有维护者合并”的流程约定,不改仓库设置。
- 不改历史审计和已归档的报告。
生效时点
dco 只读取目标分支上的名单,所以本 PR 合并之后,Ankar 的签名才会被接受。本 PR 自己仍须由 inpac 签名后合并。
文件集
.github/dco-maintainers.txt.github/pull_request_template.md.github/workflows/dco.yml(只改注释)CONTRIBUTING.mddocs/08-governance/parallel-workflow.mdtests/repository_hardening/test_check_dco.py- 热点:
docs/07-roadmap/current-status.md、SINGLEHOST-SHA256SUMS/WORKFLOW-SHA256SUMS(按需重新生成,非 Markdown 文件变了会影响这两份清单)
验证
python3 -B -m unittest tests.repository_hardening.test_check_dco- 本地模拟:用
tests/repository_hardening/dco_pr_simulation.py的方式跑两次,正文末尾分别为 Ankar 签名和 inpac 签名,都应通过;代理身份或名单外身份应失败。 make check- 快速检查:evidence/links、manifests、license coverage、
git diff --check - 不跑全量
make test。
验收标准
- 名单含两个
signoff身份,格式与原注释说明一致。 - 文档中不再出现“只有维护者签名”的表述;“代理不得签名”保持不变。
- 新增测试通过,原有测试不变。
审计重点(Codex)
- 名单仍然只从受信任的检出读取。
- 文档措辞有没有把“签名”扩大成“合并”权限。
- 代理禁止签名的规则有没有被削弱。
理论依赖
无。
分支
ci/p1-p-dco-signer-ankar
Activity
tenneidp commentedon Nov 18, 2026
计划卡修订 1(2026-11-18,维护者已批准):同时登记 dsh 的提交身份
起因:PR #201 的
dco失败,日志为0cd154298560 is authored by dsh@localhost, which is not a maintainer identity。dsh 提交时用的身份是dsh <dsh@localhost>,名单里没有登记这个身份。修订内容:
.github/dco-maintainers.txt新增author dsh <dsh@localhost>。这是维护者名下的代理提交身份,与现有的author inPac <tenneidp@gmail.com>同类:在本仓库分支的 PR 中免逐提交签名,但不能签 PR 正文。同时把注释改为如实列出两个代理提交身份。author dsh <dsh@localhost>时,该作者的提交在同仓库 PR 中免逐提交签名;该身份在正文末尾签名时检查失败。signoff(inpac、Ankar)和两个author(inPac、dsh)。其余部分不变。#201 已经按自己的修复提示改写了提交作者,不依赖本条目合并。
tenneidp commentedon Nov 18, 2026
计划卡修订 2(2026-11-18,维护者已批准,取代修订 1):只检查签名者,不再按名单检查提交作者
维护者决定:
dco不再判断提交作者是否属于名单,只检查签名者。修订后的目标(取代原目标 1–3 与修订 1)
.github/dco-maintainers.txt只保留signoff身份:inpac <inpac@lingmatrix.cn>,并新增Ankar <ankarnassia@lingmatrix.cn>。author行和author角色。格式说明改为只描述signoff;出现未知角色时检查仍应失败,这一点不变。author dsh <dsh@localhost>不再添加。scripts/check-dco.py)。Signed-off-by。dco.yml注释。git commit -s,不强制”。tests/repository_hardening/test_check_dco.py、dco_pr_simulation.py)。author角色、同仓库逐提交检查的用例。dsh@localhost)、提交未签,正文由 inpac 或 Ankar 签名时通过;author行时失败(未知角色)。文件集新增:
scripts/check-dco.py、tests/repository_hardening/dco_pr_simulation.py。审计重点补充:
生效与 #201:
dco重跑。两种做法任选。