48 lines
790 B
Markdown
48 lines
790 B
Markdown
# TASK-AIOS-CONTROL-PLANE-GATEWAY-V1
|
|
|
|
## Owner
|
|
Codex
|
|
|
|
## Goal
|
|
建立 AIOS V2 唯一控制面 Gateway v1。
|
|
|
|
## Architecture Boundary
|
|
|
|
AIOS Control Plane:
|
|
- Tenant Registry
|
|
- Agent Registry
|
|
- Task Lifecycle
|
|
- Policy Gate
|
|
- Approval
|
|
- Audit Event
|
|
|
|
不允许:
|
|
- OpenClaw 直接管理任务生命周期
|
|
- Hermes 直接暴露控制 API
|
|
- Web UI 绕过 AIOS API
|
|
|
|
## Deliverables
|
|
|
|
1. Control Plane API skeleton
|
|
2. Tenant context middleware
|
|
3. Task state machine
|
|
4. Agent registration contract
|
|
5. Audit event interface
|
|
|
|
## Acceptance
|
|
|
|
- 所有 API 携带 tenant_id
|
|
- 未授权跨租户访问拒绝
|
|
- Task create/update/cancel 可审计
|
|
- GitOps commit 可追踪
|
|
- pytest + integration test 通过
|
|
|
|
## Migration
|
|
|
|
复用:
|
|
- Agent Router
|
|
- OpenClaw adapter
|
|
- Hermes runtime
|
|
|
|
不重写执行层。
|