feat: 出厂默认与快照深合并(E4 配置演进)

- app/platform/defaults.py:DEFAULT_CONFIG(spec §5.1 九组,brand/wall 待 Task 4 填充)+ deep_merge(补缺/不动入参/兄弟保留)
- app/platform/tenant_config.py:TenantConfig/Site frozen dataclass;site.brand 以租户级 data["brand"] 为合并基线,租户自定义可被站点继承
- tests/test_config_merge.py:merge 三性质 + 站点覆盖/继承/无 sites 共 5 用例

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-12 16:44:49 +08:00
parent 603c03eb4a
commit 89339868db
4 changed files with 135 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
"""平台层(多租户):出厂默认、配置合并、租户/站点模型、注册表等。
Phase 1 逐步迁入;本包不得反向依赖 app/engine 之外的假设。"""