From 4476cb6c7934f845ee21757da9de8460c954e5f5 Mon Sep 17 00:00:00 2001 From: InfinityPacer Date: Thu, 27 Aug 2026 23:23:39 +0800 Subject: [PATCH] chore(architecture): sync query contract baselines --- app/schemas/exports.py | 1 + docs/architecture-optimization-checklist.md | 2 +- docs/architecture-overview.md | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/schemas/exports.py b/app/schemas/exports.py index 90d80157d..b9bc7901b 100644 --- a/app/schemas/exports.py +++ b/app/schemas/exports.py @@ -301,6 +301,7 @@ SCHEMA_EXPORTS = { 'PluginTriggeredEventData': ('app.schemas.event', 'PluginTriggeredEventData'), 'PluginUpdateCandidate': ('app.schemas.plugin', 'PluginUpdateCandidate'), 'PluginWorkflowActionGroup': ('app.schemas.workflow', 'PluginWorkflowActionGroup'), + 'PrivateAttr': ('app.schemas.plugin', 'PrivateAttr'), 'ProcessInfo': ('app.schemas.dashboard', 'ProcessInfo'), 'ProgressKeyData': ('app.schemas.common', 'ProgressKeyData'), 'RadarrMovie': ('app.schemas.servarr', 'RadarrMovie'), diff --git a/docs/architecture-optimization-checklist.md b/docs/architecture-optimization-checklist.md index edce89cbe..1f43ae4bf 100644 --- a/docs/architecture-optimization-checklist.md +++ b/docs/architecture-optimization-checklist.md @@ -69,7 +69,7 @@ MoviePilot V3 已经形成较清晰的模块化单体:`foundation`、`domain` | 指标 | 当前值 | 解释 | |---|---:|---| -| 宿主 Python 模块 / 内部依赖边 | 844 / 6,898 | `dependency-baseline.json` 当前快照 | +| 宿主 Python 模块 / 内部依赖边 | 848 / 6,924 | `dependency-baseline.json` 当前快照 | | 非平凡 SCC | 2 | 新增 Chain 包根环;另一个是隔离的 29 模块 TMDB 移植包环 | | 跨层 DB 边界债务 | 0 | Application、Chain、API、Agent、Runtime、Workflow 到 DB 的受控债务均为零 | | Model/Oper 事务债务 | 0 | 自建 Session、自动事务装饰器、直接 commit/rollback 等基线均为零 | diff --git a/docs/architecture-overview.md b/docs/architecture-overview.md index 3a9265edd..11408e4d2 100644 --- a/docs/architecture-overview.md +++ b/docs/architecture-overview.md @@ -697,15 +697,15 @@ flowchart LR SDK 导出(若公开)、`docs/rules/05-architecture.md` 与上述架构测试。 - 延迟导入不被接受为隐藏循环依赖的手段。 -### 10.1 2026-08-26 当前收口状态与后续边界 +### 10.1 2026-08-27 当前收口状态与后续边界 当前宿主架构基线(排除 `app/plugins/**`)如下;数字来自 `tests/fixtures/architecture/`,更新基线前必须先审查语义变化: | 指标 | 当前值 | |---|---:| -| Python 模块 | 844 | -| 内部导入边 | 6,898 | +| Python 模块 | 848 | +| 内部导入边 | 6,924 | | 非平凡 SCC | 2(`ARCH-107` 临时 Chain 包根环;精确 containment 的 TMDB 移植包环) | | Direct egress | 66(12 条待迁移债务,54 条精确 containment) | | Module Contract V2 spec | 217(其中 215 个进入 `run_module` 观察面) |