Repository navigation
📚 docs(governance): 固化协作内容与编码门禁 - #119
Merged
Merged
Conversation
Owner
Author
设计与门禁范围(2026-09-08)当前结论本 PR 将协作记录从“建议性模板”推进为可检查的契约:新 PR 必须关联 Issue、具有统一标题,并包含背景、任务、行动、验证、证据和风险回滚信息。它不试图让静态脚本判断测试结论是否真实,证据真实性仍由审查者核对。 变更与设计取舍
验证与证据
兼容性与下一步
|
Owner
Author
本地验证记录(2026-09-08)当前结论本地单元测试、静态检查、改动文件格式检查、YAML 解析和 diff 检查均已完成;新增正文规则已经被可执行测试覆盖。没有依据不足的性能或真实数据库结论。 变更与设计取舍
验证与证据
兼容性与下一步
|
ZhaoXingPeng
force-pushed
the
docs/118-governance-contract
branch
from
September 8, 2026 08:31
217f5ad to
3c3fe9b
Compare
Owner
Author
CI 收口与编码负向验证(2026-09-08)当前结论
变更与设计取舍
验证与证据
兼容性与下一步
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue
Closes #118
背景(Situation)
现有仓库只校验提交和 PR 标题,Issue 表单与 PR 正文缺少统一的可执行结构。历史条目里已经出现连续
?的 UTF-8 损坏,且阶段性 PR 回帖没有对结论、证据和未验证边界作一致约束,导致协作记录难以复查。任务(Task)
建立中文优先、UTF-8 安全的 Issue / PR / 提交标题与正文规范,提供可直接使用的表单和模板,并让 CI 在 PR 上检查标题、提交标题和正文结构。规范必须要求回帖以已执行的命令、输入、结果和边界为依据,而不是以评论数量或推测代替证据。
行动(Action)
docs/engineering-standards.md:明确 Gitmoji 与类型映射、必填 scope、UTF-8 检查、Issue 字段、PR 固定章节、合并门禁和里程碑回帖模板。关联 Issue、Situation、Task、Action、Verification、Evidence、兼容性/风险/回滚七个固定章节。scripts/validate_commit_title.py:除标题外,验证 PR 关联、全部必填章节和连续?编码信号;CI 从 GitHub 事件 JSON 的 UTF-8 正文读取输入,避免 shell 转义改变内容。验证(Verification)
完整仓库的
ruff format --check src/ tests/ scripts/报告 64 个既有文件会被重排;本次修改的两个 Python 文件格式已通过,未为刷绿重排无关文件。实验与证据(Evidence)
Closes #118和七个固定章节会通过;缺失章节且包含连续问号的损坏输入会同时触发结构与 UTF-8 错误。对应测试:tests/unit/test_commit_metadata.py。兼容性、风险与回滚
main的 PR;既有 PR 不会被追溯性拒绝。3c3fe9b可撤销模板和 CI 门禁;历史 Issue/PR 的元数据修复可独立回滚编辑。