Files
STM32F4-Base/scripts/rename_maps/batch6-net-annotate.json
T
wandering1 ad87f979b1 docs(规约): 删除编号规范.md,生效规则并入文档规范 §7.1
用户裁定:docs/编号规范.md 在项目里已无意义,删除。

依据:该文 253 行里真正仍生效的只有两条规则(新条目一律不发编号、
人读文档存量编号继续清退)和一张存量族表;其余内容早有归属——两道
编号门禁的退役记录在 docs/门禁说明/id-check.md 与 id-check-new.md,
手工普查与恢复机器面在 scripts/archive/id_gate/README.md。留着就是
第二真相源,同一事实写在两处迟早漂移。

处理:
- docs/文档规范.md 新增 §7.1「条目与编号:一律不发」,承接规则、
  场景表、三条硬规矩、存量族表、已停发旧号族清单、不是编号的清单、
  清理动作与「没有机器门禁兜底」四段。
- 活跃引用 62 处逐条改指 §7.1 或归档 README:AGENTS.md 2 处、
  门禁说明三篇 18 处、其余文档 11 篇、代码与脚本 10 处、rename_maps
  七个 record 字段、.dsh/skills 四个文件 8 处。
- 归档区 107 处去掉 docs/ 前缀当纯文本提及;编号治理历史.md 45 处
  改为「原编号规范 §N」,避免被 doc-links 当自引用解析。
- 顺带修正 scripts/archive/id_gate/README.md 里仍称旧文为现行规范
  的表述。

门禁:check_doc_links --all --sections-strict 220 篇全通过、无法判定 0;
pre-commit 全 Passed。
2026-11-06 18:32:04 +08:00

62 lines
2.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"schema": 1,
"batch": "批 6(2026-10-21 板级 NET 用例号标注)",
"applied_by": "scripts/rename_ids.py",
"record": "当时的编号规范 §8.3",
"note": "追溯器分档后暴露的真问题:板级 NET 用例的**实现体里标的是裸形**(TC204 / TC-201 / TC1501 / TC1502b…),文档侧写的是合规号 TC-NET-204 等 → 双向追溯对不上,看上去像「文档声明了没实现」,实际是**标注形态烂**。本批只补模块码、序号一位不改(§7.1),作用域限定 5 个真载体文件;改完 @build 验证(改到 test/board 与 Drivers/BSP/CH395F 注释)。刻意不含别的模块(host 侧 TC-00x 那批属另一个模块,另批处理)。",
"batches": [
{
"family": "TC",
"old": "\\bTC[- ]?(?P<n>20[1-4])\\b",
"new": "TC-NET-{n}",
"files": [
"test/board/ch395f_test_task.c",
"test/board/net_test_task.c",
"test/board/net_test_task.h",
"test/host/ch395f_socket_test.py",
"Drivers/BSP/CH395F/ch395f.c"
],
"note": "阶段 2 芯片层 TCP Client 用例 201~204 的裸形标注"
},
{
"family": "TC",
"old": "\\bTC[- ]?(?P<n>70[1-4])\\b",
"new": "TC-NET-{n}",
"files": [
"test/board/ch395f_test_task.c",
"test/board/net_test_task.c",
"test/board/net_test_task.h",
"test/host/ch395f_socket_test.py",
"Drivers/BSP/CH395F/ch395f.c"
],
"note": "阶段 7 NET 层 TCP Client 用例 701~704"
},
{
"family": "TC",
"old": "\\bTC[- ]?(?P<n>15\\d{2}b?)\\b",
"new": "TC-NET-{n}",
"files": [
"test/board/ch395f_test_task.c",
"test/board/net_test_task.c",
"test/board/net_test_task.h",
"test/host/ch395f_socket_test.py",
"Drivers/BSP/CH395F/ch395f.c"
],
"note": "阶段 15 自愈驱动原语 1501/1502/1502b/1503(含 b 子项后缀,序号原样保留)"
},
{
"family": "TC",
"old": "\\bTC[- ]?(?P<n>60[16]|80[12]|90[12]|1006|110[01])\\b",
"new": "TC-NET-{n}",
"files": [
"test/board/ch395f_test_task.c",
"test/board/net_test_task.c",
"test/board/net_test_task.h",
"test/host/ch395f_socket_test.py",
"Drivers/BSP/CH395F/ch395f.c"
],
"note": "阶段 6/8/9/11/12 的 601/606/801/802/901/902/1006/1100/1101 裸形(有则补,无则 0 命中)"
}
]
}