{ "schema": 1, "batch": "批 2(模块码单词化,16 个有歧义的码)", "applied_by": "scripts/rename_ids.py", "record": "docs/编号规范.md §6 模块码表 + §8.3 迁移批次记录", "note": "字面量已完全限定(TC-<旧码>-),故别名全局生效;裸形族才需要 scope", "batches": [ {"family": "TC-ADCIN", "old": "\\bTC-AI-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-ADCIN-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 AI → ADCIN(App/algo/adc_input;与 AH 只差一个字母)"}, {"family": "TC-ADCHEALTH", "old": "\\bTC-AH-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-ADCHEALTH-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 AH → ADCHEALTH(App/algo/adc_health)"}, {"family": "TC-PROTSET", "old": "\\bTC-PS-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-PROTSET-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 PS → PROTSET(App/algo/prot_set 保护定值)"}, {"family": "TC-PROTELEM", "old": "\\bTC-PE-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-PROTELEM-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 PE → PROTELEM(App/algo/prot_elm 保护元件/判据)"}, {"family": "TC-PHASOR", "old": "\\bTC-PH-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-PHASOR-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 PH → PHASOR(App/algo/phasor + sample_ring)"}, {"family": "TC-TIMESYNC", "old": "\\bTC-TS-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-TIMESYNC-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 TS → TIMESYNC(App/sync/time_sync;TS 与 test suite / 时间戳 撞义)"}, {"family": "TC-VOLLOCK", "old": "\\bTC-VL-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-VOLLOCK-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 VL → VOLLOCK(App/fs/vol_lock 卷锁)"}, {"family": "TC-NANDPORT", "old": "\\bTC-NP-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-NANDPORT-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 NP → NANDPORT(dhara NAND 移植层;原名看不出是移植层)"}, {"family": "TC-CONFIG", "old": "\\bTC-CFG-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-CONFIG-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 CFG → CONFIG(App/cfg + Drivers/BSP/NETCFG)"}, {"family": "TC-SYSCLK", "old": "\\bTC-CLK-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-SYSCLK-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 CLK → SYSCLK(App/util/sys_clock;CLK 也泛指任何时钟信号)"}, {"family": "TC-WATCHDOG", "old": "\\bTC-WD-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-WATCHDOG-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 WD → WATCHDOG(App/util/task_watchdog;WD 也读作『喂狗动作』)"}, {"family": "TC-STORAGE", "old": "\\bTC-STO-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-STORAGE-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 STO → STORAGE(存储栈 FTL+FatFs+App/fs;STO 易读成 stop)"}, {"family": "TC-SHA256", "old": "\\bTC-SH-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-SHA256-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 SH → SHA256(App/util/sha256;算法名应写全)"}, {"family": "TC-FTPAUTH", "old": "\\bTC-FA-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-FTPAUTH-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 FA → FTPAUTH(Drivers/BSP/NET/lftpd 鉴权)"}, {"family": "TC-FREQ", "old": "\\bTC-FR-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-FREQ-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:模块码 FR → FREQ(App/algo/freq L2.5 测频)"}, {"family": "TC-IEC104", "old": "\\bTC-104-(?P[0-9]{1,4}[a-zA-Z]?)\\b", "new": "TC-IEC104-{n}", "global_alias": true, "files": ["*", "*/*", "*/*/*", "*/*/*/*", "*/*/*/*/*", "*/*/*/*/*/*"], "note": "批 2:数字模块码 104 → IEC104(§6 表里本就写 I104,代码写成纯数字 104;纯数字不是模块码)"} ] }