chore(prep): shared groundwork for the parallel task batch

多 agent 并行批次的协调提交(消除全部共享文件冲突面):
- 迁移 0004:id_session + ob_event 两表(T3/T4 用,任务不再写迁移)
- ORM:UserSession / ObEvent;错误码:九个新码(40xxx/60006,含 meta)
- 配置:四档 tiers / refresh TTL / 任务奖励注册表 / 埋点上限 / COS 直传全套
- 骨架:packages/analytics + packages/storage + events/uploads 空路由(已注册)
- deps:AnalyticsServiceDep / StorageServiceDep;DailyBudgetGuard 接收 tiers
- uv add cos-python-sdk-v5;import-linter/CI/Makefile 纳入两个新包
This commit is contained in:
xsl
2026-08-14 16:02:54 +08:00
parent 2009aa938c
commit 9e7a886863
20 changed files with 380 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
"""storage 域 — COS 直传预签名(FR-SYS-03 / T-P1-27)。
分层位置:共享能力层(与 identity/billing/task 同层),
只准 import packages.shared / packages.domain 与 qcloud_cos(COS SDK)。
SDK 必须隔离在 CosSigner Protocol 后面,业务与测试都不直连。
实现任务:docs/开发任务包/T5-上传预签名.md(worktree task/t5-upload-presign)。
"""
+1
View File
@@ -0,0 +1 @@
"""storage 域(COS 直传)。见 README.md。"""
+11
View File
@@ -0,0 +1,11 @@
"""storage 域 service — 骨架(T5 任务填充实现)。"""
from __future__ import annotations
from typing import Any
class StorageService:
def __init__(self, settings: Any, signer: Any | None = None) -> None:
self._settings = settings
self._signer = signer