docs(acm2-75): 重排 Q 序号并补齐 Redis 投影与查询侧边界

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
windyboy
2026-09-17 13:06:59 +08:00
co-authored by Cursor
parent 2a06c42993
commit c63d6d4dce
17 changed files with 480 additions and 55 deletions
@@ -21,7 +21,7 @@ class PipelineCounters {
* 入站记录里出现 `SRVT`/`VIPF` 段的条数(`[G-SRVT-VIPF]`)。
*
* 这两个集合目前只保留在 wire/domain,不落明细表、不参与合并;计数是"真实报文有没
* 有在用"的唯一取证渠道(清空语义 `Q13` 需要真实样例才能定案)。> 0 表示确有流量携带该段。
* 有在用"的唯一取证渠道(清空语义 `Q11` 需要真实样例才能定案)。> 0 表示确有流量携带该段。
*/
fun unpersistedCollectionSeenAdd(hits: Map<String, Int>) {
hits["SRVT"]?.let { srvtSeen.addAndGet(it.toLong()) }
@@ -94,7 +94,7 @@ class PipelineMetrics(
.strongReference(true)
.register(registry)
// SRVT/VIPF 尚未落明细表([G-SRVT-VIPF]):计数替代静默丢弃,为 Q13 提供真实流量证据。
// SRVT/VIPF 尚未落明细表([G-SRVT-VIPF]):计数替代静默丢弃,为 Q11 提供真实流量证据。
Gauge.builder("msgx.pipeline.codec.srvt_seen.total", counters) { it.srvtSeenCount().toDouble() }
.strongReference(true)
.register(registry)
@@ -37,10 +37,10 @@ class JdbcCminmsgInboxRepository(
}
} catch (e: IllegalStateException) {
// 只调整适配代码、不碰共享 Schema:把"取不到 generated key"变成可诊断错误,
// 指出这是共享信箱 ID 生成方式的前提(C-14、Q7)。
// 指出这是共享信箱 ID 生成方式的前提(C-14、Q8)。
throw IllegalStateException(
"shared mailbox insert returned no generated CMINMSGS_ID; " +
"the CMINMSGS_ID column must be DB-generated (C-14, Q7)",
"the CMINMSGS_ID column must be DB-generated (C-14, Q8)",
e,
)
}