- 删掉 platform::auth 的 WHITE_URL / EXTRA_WHITE_URL 两个 const - AuthState 增字段 public_paths: Arc<Vec<&'static str>>(清单由业务层注入) - 清单真源移到 tdc::support::public_paths:4 条活路径(3 业务 + /api/health), 并剪掉上游 gateway.white-url 里本仓**无对应路由**的 9 条死路径 (Gateway×2 / P2P×5 / Portal / Topology)⇒ 记 D17(spec 写「7 条」与实际「9 条」有出入) - platform::auth 的 is_white_url 改成「清单由调用方给」,机制不变(Ant 匹配) - 单测:平台层 white_url_matching_is_manifest_driven(机制)+ 业务层 the_manifest_holds_exactly_the_live_endpoints / dead_upstream_paths_are_not_in_the_manifest - 边界账本清空 B1b 责任条目(CP1/CP4 全部归零)⇒ 账本只剩 2 条永久豁免
17 lines
1.2 KiB
Plaintext
17 lines
1.2 KiB
Plaintext
# 边界越界账本(ratchet ledger)—— `scripts/check-boundary.sh` 读
|
||
#
|
||
# 规则:越界不是"一律红",而是"**必须被记账**"。
|
||
# · 没记账的越界 ⇒ 尺子当场红(抓新增泄漏)。
|
||
# · 账本里已失效的条目 ⇒ 尺子也红(越界已消失 ⇒ 账本只许变短,请删行)。
|
||
# · ⇒ B1b 的 C1–C12 做完,标 `B1b` 的条目必须**清空**;标 `永久` 的是**假阳性豁免**,
|
||
# 永远保留(但若代码变了导致它失效,同样要删行)。
|
||
#
|
||
# 列:规则 <TAB> 文件(路径后缀,搬家不失效) <TAB> 命中子串(留空 = 该文件全部) <TAB> 为什么可接受 <TAB> 责任(B1b / 永久)
|
||
#
|
||
# ── 新布局(src/platform/ + src/tdc/)下的已知越界 ──────────────────
|
||
#
|
||
# 文件字段按**路径后缀**匹配 ⇒ 搬家(src/auth.rs → src/platform/auth.rs)不会让条目失效。
|
||
|
||
CP2 session.rs Identity 假阳性:SessionKind::Identity 是**会话口径**,不是业务实体 tdc_identity 永久
|
||
CP2 auth.rs SessionKind::Identity 假阳性:Principal::Session 分支里的会话种类,不是业务实体 永久
|