- audit.proto: AuditService with Append RPC, AuditEntry, AuditAction enum - secrets.proto: SecretsService with GetSecret RPC - memory.proto: MemoryService with QueryMemory (streaming), WriteMemory, GetCorrelated - model_gateway.proto: ModelGatewayService with StreamInference, Inference, GenerateEmbedding, IsModelReady - search.proto: SearchService with Search RPC, SearchResult - tool_broker.proto: ToolBrokerService with DiscoverTools, ExecuteTool (streaming), ValidateCall - orchestrator.proto: OrchestratorService with ProcessRequest (streaming) All protos pass buf lint and buf build. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.4 KiB
1.4 KiB
Implementation Plan — Issue #9: Define audit.proto
Metadata
| Field | Value |
|---|---|
| Issue | #9 |
| Title | Define audit.proto |
| Milestone | Phase 1: Proto Definitions |
| Labels | type:feature, priority:critical, lang:protobuf, service:audit |
| Status | COMPLETED |
| Language | Protobuf |
| Related Plans | issue-008.md |
| Blocked by | #8 (completed) |
Acceptance Criteria
- AuditService with Append RPC defined
- AuditEntry message with all required fields
- Uses SessionContext from common.proto
- Proto compiles without errors
Architecture Analysis
Write-only append log for all service actions. AuditService exposes a single Append RPC -- no read RPCs are exposed. AuditEntry captures timestamp, session_id, agent_id, agent_type, lineage, action, tool_name, params_hash (never raw params to avoid logging credentials), result_status, and metadata as key-value pairs. AuditAction enum categorizes actions: tool invocation, broker decision, memory read/write, subagent spawn, session config change, inference request, and secret access.
Files to Create/Modify
| File | Action | Purpose |
|---|---|---|
proto/llm_multiverse/v1/audit.proto |
Modify | Define AuditService, AuditEntry, AuditAction enum, and request/response types |
Deviation Log
(No deviations)