refactor(phase-3): 3A 拆薄第十三笔——AP 剩余五簇出件,服务 1127→750(<800 达标)
- 新落五件:ChunkPayloadMerger(CAS 合并)/LlmSubmissionSupport(提交调度+凭据)/ StaleTaskFinalizer(判死+超时恢复)/GroupingSupport(解析分组)/TaskRecordSupport(删除下载激活) - 非事务回传支并进 ChunkSubmissionSupport.receiveWithoutTransaction(逐字搬移) - 归一/首非空/基 id 改吃 AppearancePatentRowNormalizer,登记过的重复实现退场 - 状态标量改吃 TaskStatuses.FileTask(状态词表棘轮 70 不涨) - 手写归属谓词文件数 16→15 是拆件真下降,棘轮同步登记(阈值 ≤130 未放宽) - SourceScan 面数 39→44 / support 16→21,五枚新件逐枚 anyMatch 点名 - 等价:18 段符号归一逐行对撞,14 段 EQUAL,4 段仅登记过的回调/util 替换
This commit is contained in:
+6
-3
@@ -24,7 +24,8 @@ import org.junit.jupiter.api.Test;
|
||||
* 类注释里还点名留了三处非同构变体(PriceTrack 要求缓存行 requestJson 非空、ShopMatch 带新旧复活防护、
|
||||
* Withdraw 先按 limit(50) 归一化 id)。剩下的重复不是行,是<b>同一条安全谓词被手抄的遍数</b>:
|
||||
* 「这一行是不是这个模块的」{@code !MODULE_TYPE.equals(x.getModuleType())} 在 <b>16</b> 个文件里写了
|
||||
* <b>130</b> 遍。第 3 项那个超管判定是同一缺陷的小一号版本(19 遍),那个已经收口成出口,这个还没有。</p>
|
||||
* <b>130</b> 遍(2026-10-21 实测 <b>15</b> 个文件 / <b>108</b> 遍:AppearancePatentTaskService 最后一处
|
||||
* 随 3A 拆薄第十三笔退场,新件走构造入参 moduleType,不在本尺的记名面内)。第 3 项那个超管判定是同一缺陷的小一号版本(19 遍),那个已经收口成出口,这个还没有。</p>
|
||||
*
|
||||
* <p>抄本身不是 bug,<b>改不动</b>才是:归属谓词漏一处的表现是某一页的检查静默变成"谁都能读",
|
||||
* 不报错、不 403。今天动它要一次改到 16 个文件,代价太大,所以这里先把<b>遍数钉成棘轮</b>:
|
||||
@@ -48,8 +49,10 @@ class TaskLifecycleDebtRatchetTest {
|
||||
files.add(file.getFileName().toString());
|
||||
}
|
||||
}
|
||||
// 自检:分母本身要说得出数("扫到 16 个文件"与"扫描坏了返回空"是两种红法,别混)
|
||||
assertThat(files).as("手写模块归属谓词的文件数").hasSize(16);
|
||||
// 自检:分母本身要说得出数("扫到 15 个文件"与"扫描坏了返回空"是两种红法,别混)。
|
||||
// 16→15 是 3A 拆薄第十三笔的真下降:AppearancePatentTaskService 最后一处手写归属
|
||||
// 随任务记录/陈旧收尾出件退场(新件用构造入参 moduleType,主件走底座覆写),不是放宽阈值。
|
||||
assertThat(files).as("手写模块归属谓词的文件数").hasSize(15);
|
||||
// 自检:锚点必须真抓得到这一形,否则上一条与下面那条棘轮都是恒绿
|
||||
assertThat(count("if (task == null || !MODULE_TYPE.equals(task.getModuleType())) {", MODULE_OWNERSHIP))
|
||||
.as("锚点自检:这一形抓不到,棘轮等于没写").isEqualTo(1);
|
||||
|
||||
@@ -266,13 +266,13 @@ class SourceScanTest {
|
||||
// ---------------------------------------------------------------- N6 moduleSources
|
||||
|
||||
@Test
|
||||
void moduleSources_appearancepatent返回39支含拆分后的support件() {
|
||||
void moduleSources_appearancepatent返回44支含拆分后的support件() {
|
||||
List<Path> files = SourceScan.moduleSources("modules/appearancepatent");
|
||||
|
||||
assertThat(files)
|
||||
.as("真实集成:对真仓目录求值。39 支=1 controller+1 client+1 service 主件+3 spi/cache+"
|
||||
+ "16 service/support+16 model(dto7/vo9),与 find 实测同号(3A 拆薄第十二笔再落 1 支)")
|
||||
.hasSize(39);
|
||||
.as("真实集成:对真仓目录求值。44 支=1 controller+1 client+1 service 主件+3 spi/cache+"
|
||||
+ "21 service/support+16 model(dto7/vo9),与 find 实测同号(3A 拆薄第十三笔再落 5 支)")
|
||||
.hasSize(44);
|
||||
assertThat(files.stream().map(p -> p.toString().replace('\\', '/')).toList())
|
||||
.as("support 目录里的既有件必须在面里——聚合入口存在的理由就是拆分后的新文件要自动被看到")
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentRowNormalizer.java"));
|
||||
@@ -366,18 +366,18 @@ class SourceScanTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void recursive_包含service_support下的既有15件() {
|
||||
void recursive_包含service_support下的既有21件() {
|
||||
List<String> support = SourceScan.moduleSources("modules/appearancepatent").stream()
|
||||
.map(p -> p.toString().replace('\\', '/'))
|
||||
.filter(rel -> rel.contains("/service/support/"))
|
||||
.toList();
|
||||
|
||||
assertThat(support)
|
||||
.as("真实集成:对真仓 modules/appearancepatent/service/support 求值,实测 16 支(3A 拆薄把归属谓词、陈旧扫描、结果打包、LLM 批管线、载荷读写、结果行读取、进度视图、分片回传、交付闸门、结果作业、建单解析抽成十一枚 support 件,5→16)。"
|
||||
.as("真实集成:对真仓 modules/appearancepatent/service/support 求值,实测 21 支(3A 拆薄把归属谓词、陈旧扫描、结果打包、LLM 批管线、载荷读写、结果行读取、进度视图、分片回传、交付闸门、结果作业、建单解析、载荷合并、提交调度、陈旧收尾、解析分组、任务记录抽成十六枚 support 件,5→21)。"
|
||||
+ "这一格就是聚合入口存在的理由——拆分出去的新文件必须自动进面")
|
||||
.hasSize(16);
|
||||
.hasSize(21);
|
||||
assertThat(support)
|
||||
.as("3A 拆出去的十一枚新件必须被逐枚点名扫到:只把分母数字改大,下一回拆件又只剩「数不对」"
|
||||
.as("3A 拆出去的新件必须被逐枚点名扫到:只把分母数字改大,下一回拆件又只剩「数不对」"
|
||||
+ "一记红,证不了「扫得到」这件事")
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentTaskOwnership.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentStaleTaskScanner.java"))
|
||||
@@ -389,7 +389,12 @@ class SourceScanTest {
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentChunkSubmissionSupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentDeliverySupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentResultJobSupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentParsePipeline.java"));
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentParsePipeline.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentChunkPayloadMerger.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentLlmSubmissionSupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentStaleTaskFinalizer.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentGroupingSupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentTaskRecordSupport.java"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user