Repository navigation
build(docs): enforce terminology rules in CI - #156
Merged
Merged
Conversation
Co-authored-by: Codex GPT-5.6-Sol <281847692+a-chatgpt-codex-bot[bot]@users.noreply.github.com>
Owner
Author
任务书三 · 对抗核验(Grok)对象:本 PR(文档工具链)。测试在 #161,不另开文档。 结论:修正。 检查器语义成立,PR 门对重命名/移动的处理成立;需要改的是豁免表策略,不是把检查器推倒。
收缩 46 条是写作改动(Fable 在各文档首次出现补词表对照,或给标题例外写成规则),不在测试 PR 里改 |
yesme
added a commit
that referenced
this pull request
Sep 3, 2026
承接 Grok 对 #156 的修正结论:first_use_terms.allowlist 46 条全为规则豁免。十个自然 译名核心词与三个高频约束词在九份设计层文档首现处补对照;三份模块正文 H1 带括注,横切 正文标题改「可解释的 Context(上下文)」。词汇表与架构正文的 Execution Spec 对照由 「派发规格」对齐为总则的「执行规格」。豁免表清零,夹具改为空表必须通过且入库表只能 保持注释。基线 v0.16.5,台账加一行。状态板改第三轮已收口、新增 3.7;裁决记录补所有者 两条同意:五家 SDK 延到 P2、I-03 不做全量加词。 Claude-Session: https://claude.ai/code/session_01ECQQojBHRugVZZWstqqGUt Co-authored-by: Haibara AI <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
定位与重述
这是第三轮设计评审任务书二的 PR 甲,位置在文档构建与机械检查层。它把已经拍板的词汇路由、实现名边界、驼峰名、首现中文对照、约束层“需要”写法和标识符对照表变成 Buck2 文档测试;同时把现有正文中会触发新规则的写法做等义整理。报告制的同表中英混排仍只报告,不阻断提交。
本地验收:
cd src && ./buck2 test root//build/docs:profile-all:12/12 通过cd src && ./buck2 test root//build/docs/...:12/12 通过perl -cgit diff --check通过当前生效约束集
sh_test接入对应 docs profile,检查器消费repo//:docs_tree,不另建平行构建入口。docs/design/spec/README.md与docs/design/doc-discipline.md;脚本直接解析词表,allowlist 逐文件、逐词且绑定现有文本。业界方案调研
沿用 docs/research/docs-lint.md 的比较:lychee 与 markdown-link-check 处理链接,markdownlint/vale 处理通用 Markdown 风格,均不能表达本库的分层词表、现行 allowlist、枚举写法和约束层专用语义。实现复用仓库既有 Perl + Buck2
sh_test体例和同一份docs_tree,没有增加运行时或工具链依赖;自建范围只覆盖已拍板、仓库特有且可确定判断的规则。