Repository navigation
#1197 收口修复:补迁 199 条可见文案并修正收口记录(#1315/#1316/#1317/#1318) - #1319
Merged
Merged
Conversation
FeatherHunter
marked this pull request as ready for review
November 2, 2026 16:32
This was referenced Nov 2, 2026
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.
Summary
规格 #1197(爱生活全量中英双语)45/45 实施票关闭后的收口审计发现:
tooling/check-i18n-keys.mjs --hints在 863 件「已登记迁移」文件里仍有 235 条候选、逐条裁定 199 条是用户可见文案(门的主判据对含</>的字面量整条豁免,因此两道门全绿也看不见);另有 8 张票的收口记录缺件。本 PR 是 4 张承接票(#1315/#1316/#1317/#1318)的合入,并包含双轴评审后的两处代码修复与一处 16 条补迁;规格 #1197 保持 open,不在本 PR 关闭。Evidence
Before:
node tooling/check-i18n-keys.mjs --hints→HINTS: files=863 candidates=235(其中 199 条应迁,残留在 46 个已登记迁移文件)After: 同一命令 →
HINTS: files=863 candidates=36,36 条全部为逐条裁定不迁行(属性锚点/机器位/参数占位/CSS 注释)。逐票读数(集成分支
33cdb0fa,合后重跑)missing=0;keysresidue=0;相关测试 77/77;skill-html.snapshot.jsonhash 改前改后同值--checkOK;补口后定向测试与基线同集(17 条改前既有)--selftest修前 EXIT=1 → 修后 EXIT=0(六条变异仍必红);RESULT: tickets=29 files=0 problems=0,863+363=1226闭合双轴评审(Standards/Spec)与处置:评审结论与逐项裁定写入
docs/agents/多语言-收口口径-1318.md§5(本 PR 内)。代码修复两处:①硬违规——skill-calorie/src/cli/readArgs.ts模块顶层const USAGE = m(...)改为usage()、解析期报错按 argv--language取词(未给语言时中文逐字不变,新增output-naming-87⑧ 两条断言);②base-render/src/components/search-field/render.ts的 DOM 锚点不再塞进m()占位符(结构留源码、哨兵替换,输出逐字节不变)。判断项(J1 借 key/J2 同文案多 key/J4 模板拼句/J5 测试钉数)按文档 §5 口径保留;allowlist 整串豁免的结构问题另票 #1320 承接(本 PR 只补 16 处 UI 位,未改门结构)。仓库门禁(集成分支
33cdb0fa,12 步全 exit 0):pnpm install --offline --frozen-lockfile/tsc -b/pnpm build/pnpm gen:check/pnpm gate:i18n(entrieskeys=18916 missing=0 blanks=0 empty=0、keysliterals=102503 residue=0、params19104 pairs mismatch=0 skew=0、锚anchors=3 verified=3 drift=0、连接符5/5、calorie 快照--check一致、typography 存续债 en 3 条新增 0)/pnpm boundaries/pnpm base:floor/pnpm doctor/pnpm changeset:status/pnpm publish:pre/pnpm publish:tarball/run-tests --list=683。定向测试:search-field 19/19、calorie CLI 三件 20/20、bill 三件 29/29、
check-i18n-ticket-scope --selftest六条自证 OK。已知边界(非本 PR 引入,收口材料单独记录):
delivery-83.test.mjs的 HELP 文件量级断言 463,831 字节 > 400,000,在master b21e2323同读数同失败;relation-picker.test.mjs:1123在基线 master 同样失败;skill-html-snapshot --check在未改动 HEAD 上即红(89 件产物含 base-paint 标记,需维护者裁 MARKER_ALLOW 或重录);英文列账本recorded=0(骨架已立、尚无英文页)与#1235的_en后缀未落地属机制缺口,均不在本 PR 范围。全量pnpm test属信息项(AGENTS.md:只与主线基线比对、不单独拦路),未作为门禁。Merge Danger
Door: two-way(全部是字面量 → 词条表
m()的等价迁移;中文渲染逐字节保持,可用既有快照/指纹账本回滚核验)Blast Radius: 高