From 10ad8aa9b8d24365128afc83068d18d9d9c598ae Mon Sep 17 00:00:00 2001 From: Wanderingss <1624155937@qq.com> Date: Tue, 27 Oct 2026 14:00:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=BC=96=E5=8F=B7):=20=E6=92=A4?= =?UTF-8?q?=E6=8E=89=E5=BC=80=E6=9C=BA=E8=B4=A6=E6=9C=AC=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E7=9A=84=E6=97=8F=E7=99=BB=E8=AE=B0=E2=80=94=E2=80=94=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E4=BD=8D=E5=8F=AA=E7=95=99=E6=B5=8B=E8=AF=95=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E7=AF=87=E4=B8=80=E5=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 道F 的判断成立且用机器验过:把 TC-HOST-BOOTSTAT 从 registry 撤掉后 check_ids --strict 仍 rc=0, 说明那 21 个号靠 开机账本单元测试说明.md 一处就够定义,族不提供任何额外判定,只多了一个 「改起来更便宜」的落点。代价是失去该族游标;接受,因为文档路线更严(加号必须写一行判据, 游标只拦号码大小)。族数 100 → 99,id-check 与 doc-links 均 rc=0。 --- scripts/id_registry.json | 103 ++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 62 deletions(-) diff --git a/scripts/id_registry.json b/scripts/id_registry.json index 13d25aad..935def9a 100644 --- a/scripts/id_registry.json +++ b/scripts/id_registry.json @@ -175,6 +175,7 @@ "圈号编号(①②③…):与正常列举无法机械区分,不入判定;§7.1 的 RC-01~05 迁移批次落地后再收。", "TC 用例的「文档侧/代码侧」双向一一对应由 check_test_traceability.py 判(本门禁只判形态与定义存在性),两脚本同挂 id-check 钩子。" ], + "tc_freeze_2026_10_27": "批次三裁定(用户 2026-10-27「批次三,不做」):TC 族保留现存号但**即日停发**,不是暂缓、也不是可以清号。34 个按套件划分的 TC 子族已置 frozen=true,游标冻结在裁定日该套件存量最高号(字符串形态——整型比较会静默不生效);其中 5 个游标低于存量已抬到水位:TC-HOST-PROTELEM: TC-PROTELEM-013→TC-PROTELEM-015;TC-HOST-SYSLOG: TC-SYSLOG-108→TC-SYSLOG-137;TC-HOST-ADCHEALTH: TC-ADCHEALTH-011→TC-ADCHEALTH-023;TC-HOST-ADCCAL: TC-ADCCAL-017→TC-ADCCAL-023;TC-HOST-I104SRV: TC-I104SRV-041→TC-I104SRV-053。通用 TC 族同样置 frozen=true 但 cursor 仍为 null:单一游标表达不了每个模块码的水位,它的停发由三条兜住——per-suite 游标(校验 5 咬越游标新号)+ 校验 3(新号没进属主登记处=悬空,错误级)+ docs/编号规范.md §9.1 冻结水位(只减不增)。新用例一律用语义化测试函数名 + 文档表格行名,不再配 TC- 号(含只在文档表格里补定义行的情形)。", "families": [ { "name": "FR", @@ -393,7 +394,7 @@ "docs/测试说明/存储维护与容量恢复.md" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": null, "digit_width": [ 2, @@ -539,7 +540,7 @@ "frozen": false, "cursor": null, "check_dangling": true, - "cursor_note": "实测 F-NET-2~F-NET-17 / F-DRV-* 定义在 docs/网络/网络自愈架构设计.md 的功能对照表并被大量代码注释引用,但 §4.1/§4.2 总表里没有这一族 → 门禁先按实测收编,规范 §4 补行随本批同步提(§5.1 第 1 步:表里没有的类别先改规范)", + "cursor_note": "2026-10-27 批次一收口:**本族即日停发**,全仓引用改「条目名 + §7 落点」(映射 scripts/rename_maps/batch7-f-net-semantic.json,旧号见 scripts/id_aliases.json 标 retired-to-phrase)。属主登记处 docs/网络/网络自愈架构设计.md §7 保留 12 条编号仅作历史对照(定义行不算引用);孤儿号 F-DRV-9 已删号留事实、未补定义。三模块各自有最高号(NET 17 / DRV 13 / MS 9),单一 cursor 表达不了 → 不冻结游标,靠 §8 校验 3 + 别名表 + 评审兜住「新增引用」", "adjacent_cues": [ "自愈", "功能", @@ -1420,7 +1421,7 @@ "test/host/nand_port/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-NANDPORT-700", "cursor_owner_only": true, "check_dangling": true, @@ -1442,7 +1443,7 @@ "test/host/prot_set/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-PROTSET-011", "cursor_owner_only": true, "check_dangling": true, @@ -1464,8 +1465,8 @@ "test/host/prot_elm/*" ], "scope": "global", - "frozen": false, - "cursor": "TC-PROTELEM-013", + "frozen": true, + "cursor": "TC-PROTELEM-015", "cursor_owner_only": true, "check_dangling": true, "allow_orphans": true, @@ -1486,7 +1487,7 @@ "test/host/freq/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-FREQ-011", "cursor_owner_only": true, "check_dangling": true, @@ -1508,7 +1509,7 @@ "test/host/ftp_auth/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-FTPAUTH-010", "cursor_owner_only": true, "check_dangling": true, @@ -1530,7 +1531,7 @@ "test/host/sha256/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-SHA256-008", "cursor_owner_only": true, "check_dangling": true, @@ -1552,7 +1553,7 @@ "test/host/soe/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-SOE-007", "cursor_owner_only": true, "check_dangling": true, @@ -1574,7 +1575,7 @@ "test/host/net_socket/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-NETSOCK-560", "cursor_owner_only": true, "check_dangling": true, @@ -1596,8 +1597,8 @@ "test/host/sys_log_mcu/*" ], "scope": "global", - "frozen": false, - "cursor": "TC-SYSLOG-108", + "frozen": true, + "cursor": "TC-SYSLOG-137", "cursor_owner_only": true, "check_dangling": true, "allow_orphans": true, @@ -1618,7 +1619,7 @@ "test/host/cfg_file_store_mcu/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-CFGFST-053", "cursor_owner_only": true, "check_dangling": true, @@ -1640,7 +1641,7 @@ "test/host/soe_store/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-SOESTORE-024", "cursor_owner_only": true, "check_dangling": true, @@ -1662,7 +1663,7 @@ "test/host/console_log/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-CONLOG-179", "cursor_owner_only": true, "check_dangling": true, @@ -1684,8 +1685,8 @@ "test/host/adc_health/*" ], "scope": "global", - "frozen": false, - "cursor": "TC-ADCHEALTH-011", + "frozen": true, + "cursor": "TC-ADCHEALTH-023", "cursor_owner_only": true, "check_dangling": true, "allow_orphans": true, @@ -1693,28 +1694,6 @@ "owner_note": "B 层口径(用户裁定 2026-10-21):这些号实测在代码目录外零消费者(唯一外部引用是 id_aliases.json 自己),故属主登记处 = 单测代码本身,不逐号补文档;class 仍为 TC → 跨模块同号由校验 4 抓", "cursor_note": "游标按实测最大号收录(2026-10-21):越界即视为未登记的冒号牌" }, - { - "name": "TC-HOST-BOOTSTAT", - "class": "TC", - "title": "主机侧单测用例号:开机账本(上电次数与复位原因快照,test/host/boot_stats,道F task-12)", - "pattern": "\\bTC-BOOTSTAT-[0-9]{1,4}[a-z]?\\b", - "digit_width": [ - 2, - 4 - ], - "owner_docs_glob": [ - "test/host/boot_stats/*" - ], - "scope": "global", - "frozen": false, - "cursor": "TC-BOOTSTAT-030", - "cursor_owner_only": true, - "check_dangling": true, - "allow_orphans": true, - "subitem_ok": true, - "owner_note": "B 层口径(用户裁定 2026-10-21,同 TC-HOST-ADCCAL 先例;2026-10-27 道F task-12 建族):属主登记处 = 单测代码目录,不逐号补文档", - "cursor_note": "游标按建族时实测最大号收录(2026-10-27,实测最大 30):越界即视为未登记的冒号牌" - }, { "name": "TC-HOST-ADCCAL", "class": "TC", @@ -1728,8 +1707,8 @@ "test/host/adc_cal/*" ], "scope": "global", - "frozen": false, - "cursor": "TC-ADCCAL-017", + "frozen": true, + "cursor": "TC-ADCCAL-023", "cursor_owner_only": true, "check_dangling": true, "allow_orphans": true, @@ -1750,7 +1729,7 @@ "test/host/ui_data/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-UIDATA-029", "cursor_owner_only": true, "check_dangling": true, @@ -1772,7 +1751,7 @@ "test/host/prot_dim/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-PROTDIM-010", "cursor_owner_only": true, "check_dangling": true, @@ -1794,7 +1773,7 @@ "test/host/vol_idle_sync/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-VOLSYNC-012", "cursor_owner_only": true, "check_dangling": true, @@ -1816,7 +1795,7 @@ "test/host/meas/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-MEAS-011", "cursor_owner_only": true, "check_dangling": true, @@ -1838,7 +1817,7 @@ "test/host/run_par/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-RUNPAR-008", "cursor_owner_only": true, "check_dangling": true, @@ -1860,7 +1839,7 @@ "test/host/iec104/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-IEC104-034", "cursor_owner_only": true, "check_dangling": true, @@ -1882,7 +1861,7 @@ "test/host/net_cfg/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-NETCFG-056", "cursor_owner_only": true, "check_dangling": true, @@ -1904,7 +1883,7 @@ "test/host/ftp_cfg/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-FTPCFG-014", "cursor_owner_only": true, "check_dangling": true, @@ -1926,7 +1905,7 @@ "test/host/prot_set_store/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-PROTSTOR-016", "cursor_owner_only": true, "check_dangling": true, @@ -1948,7 +1927,7 @@ "test/host/task_prof/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-TASKPROF-020", "cursor_owner_only": true, "check_dangling": true, @@ -1970,7 +1949,7 @@ "test/host/lftpd_io/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-LFTPIO-037", "cursor_owner_only": true, "check_dangling": true, @@ -1992,7 +1971,7 @@ "test/host/lftpd_io/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-LFTSTR-005", "cursor_owner_only": true, "check_dangling": true, @@ -2014,7 +1993,7 @@ "test/host/net_select/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-NETSEL-019", "cursor_owner_only": true, "check_dangling": true, @@ -2036,7 +2015,7 @@ "test/host/net_listener/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-NETLIS-026", "cursor_owner_only": true, "check_dangling": true, @@ -2058,7 +2037,7 @@ "test/host/net_pending/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-NETPEND-040", "cursor_owner_only": true, "check_dangling": true, @@ -2080,7 +2059,7 @@ "test/host/net_events/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-NETEV-058", "cursor_owner_only": true, "check_dangling": true, @@ -2102,7 +2081,7 @@ "test/host/lftpd_inet/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-LFTINET-070", "cursor_owner_only": true, "check_dangling": true, @@ -2124,7 +2103,7 @@ "test/host/lftpd/*" ], "scope": "global", - "frozen": false, + "frozen": true, "cursor": "TC-LFTPD-034", "cursor_owner_only": true, "check_dangling": true, @@ -2146,8 +2125,8 @@ "test/host/iec104_serv/*" ], "scope": "global", - "frozen": false, - "cursor": "TC-I104SRV-041", + "frozen": true, + "cursor": "TC-I104SRV-053", "cursor_owner_only": true, "check_dangling": true, "allow_orphans": true,