Add architecture package and application skeleton
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
# Internal Interfaces
|
||||
|
||||
## Orchestrator Application Ports
|
||||
|
||||
### TaskRepository
|
||||
|
||||
- create task
|
||||
- update task
|
||||
- get task by id
|
||||
- list active tasks
|
||||
|
||||
### GraphRepository
|
||||
|
||||
- save graph
|
||||
- get graph
|
||||
- update node state
|
||||
- list ready nodes
|
||||
|
||||
### ConfirmationRepository
|
||||
|
||||
- create confirmation
|
||||
- get confirmation
|
||||
- resolve confirmation
|
||||
|
||||
### WorkerRepository
|
||||
|
||||
- register session
|
||||
- update heartbeat
|
||||
- assign command
|
||||
- complete command
|
||||
|
||||
### EventStore
|
||||
|
||||
- append event
|
||||
- list events by task
|
||||
|
||||
### PolicyEvaluator
|
||||
|
||||
- evaluate action descriptor against project policy
|
||||
|
||||
### ModelRouter
|
||||
|
||||
- execute model request and return structured invocation result
|
||||
|
||||
### ToolGateway
|
||||
|
||||
- call MCP tool and return normalized result
|
||||
|
||||
### WorkerGateway
|
||||
|
||||
- dispatch command to worker and receive normalized result
|
||||
|
||||
## Design Rule
|
||||
|
||||
Application services зависят только от этих портов.
|
||||
Ни один use case не должен напрямую импортировать HTTP handlers, DB session objects или конкретный MCP/WebSocket client.
|
||||
|
||||
Reference in New Issue
Block a user