docs: refresh transfer architecture baselines

This commit is contained in:
jxxghp
2026-09-01 07:28:17 +08:00
parent 9f9f29d893
commit 70a0019ae6
4 changed files with 12 additions and 15 deletions
+2 -2
View File
@@ -755,11 +755,11 @@ flowchart LR
| 指标 | 当前值 |
|---|---:|
| Python 模块 | 919 |
| 内部导入边 | 7,680 |
| 内部导入边 | 7,684 |
| 非平凡 SCC | 1(精确 containment 的 TMDB 移植包环) |
| Application / Chain 具体 Adapter 直连 | 0 / 0 |
| Direct egress | 53(债务已清零,53 条精确 containment |
| Module Contract V2 spec | 217(其中 215 个进入 `run_module` 观察面) |
| Module Contract V2 spec | 217(其中 214 个进入 `run_module` 观察面) |
| Event Contract | 53 |
| Event producer / consumer | 8685 静态、1 动态)/ 17(16 静态、1 动态) |
| Model/Oper 自动事务与自建 Session | 0 |
+2 -2
View File
@@ -94,11 +94,11 @@ ARCH-201 至 ARCH-204 均达到实现、验证、提交、推送和远端门禁
| 指标 | 当前值 | 解释 |
|---|---:|---|
| 宿主 Python 模块 / 内部依赖边 | 919 / 7,680 | `dependency-baseline.json` 当前快照 |
| 宿主 Python 模块 / 内部依赖边 | 919 / 7,684 | `dependency-baseline.json` 当前快照 |
| 非平凡 SCC | 1 | 仅保留精确 containment 的 29 模块 TMDB 移植包环 |
| 跨层 DB 边界债务 | 0 | Application、Chain、API、Agent、Runtime、Workflow 到 DB 的受控债务均为零 |
| Model/Oper 事务债务 | 0 | 自建 Session、自动事务装饰器、直接 commit/rollback 等基线均为零 |
| Module Contract | 217 specs / 215 methods / 266 calls | 动态方法名为 0;内部 planning 合同不进入插件调度,旧 transfer 只保留 provider ABI |
| Module Contract | 217 specs / 214 methods / 265 calls | 动态方法名为 0;内部 planning 合同不进入插件调度,旧 transfer 只保留 provider ABI |
| Event Contract | 53 | 均已有 payload model,但当前全部是 diagnostic enforcement |
| Python 源码量 | 305,884 行 | 排除 `app/plugins/**`61 个文件超过 1,000 行,11 个超过 2,000 行 |
| 长方法 | 290 个超过 80 行 | AST 统计排除 `app/plugins/**`;65 个超过 150 行,21 个超过 250 行 |
+6 -2
View File
@@ -1089,8 +1089,8 @@
"runtime_only": true
}
},
"edge_count": 7680,
"edge_sha256": "e587b2c539a0100a96f73ec7daf1634671e2570e9c89114774fdcd26b9072aac",
"edge_count": 7684,
"edge_sha256": "62be4cd0bd17892f3679d8ffd108b54d6c886413290adb9c22e794b076084e03",
"edges": [
"app -> app.foundation",
"app -> app.foundation.environment",
@@ -3039,6 +3039,9 @@
"app.application.history -> app.schemas.media",
"app.application.history -> app.schemas.transfer",
"app.application.history -> app.schemas.types",
"app.application.historymutation -> app.application",
"app.application.historymutation -> app.application.transfer",
"app.application.historymutation -> app.application.transfer.execution",
"app.application.historymutation -> app.schemas",
"app.application.historymutation -> app.schemas.common",
"app.application.historymutation -> app.schemas.history",
@@ -5125,6 +5128,7 @@
"app.db.adapters.transfer.execution -> app.db.models.transferpending",
"app.db.adapters.transfer.execution -> app.db.oper",
"app.db.adapters.transfer.execution -> app.db.oper.transferexecutionstep",
"app.db.adapters.transfer.execution -> app.db.oper.transferhistory",
"app.db.adapters.transfer.execution -> app.db.oper.transferpending",
"app.db.adapters.transfer.execution -> app.db.uow",
"app.db.adapters.user -> app.application",
+2 -9
View File
@@ -7994,10 +7994,10 @@
}
},
"run_module": {
"call_count": 266,
"call_count": 265,
"dynamic_call_count": 0,
"dynamic_calls": [],
"method_count": 215,
"method_count": 214,
"methods": {
"anilist_credits": [
{
@@ -9249,13 +9249,6 @@
"mode": "sync"
}
],
"plan_transfer": [
{
"caller": "app.chain.base",
"count": 1,
"mode": "sync"
}
],
"recognize_media": [
{
"caller": "app.chain._recognition",