How sastrava/finesse works
FINESSE is a role-aware AI workspace combining agent orchestration, retrieval over a tenant-scoped knowledge base, consulting workflows, and operator interfaces. A user authenticates and submits a directive; the API routes it to the orchestrator, which selects permitted agents, gathers contextual knowledge, invokes an LLM, and returns a deliverable that may be written to the vault or shared memory. The graph also preserves documented CRM, security-review, SASTRAVA, and live-event capabilities. Some subsystems are represented at directory level because their implementations were not sampled; links are limited to documented or indexed relationships.
Main entry points: main.py FastAPI service · orchestrator.py Directive orchestrator · ingest.py Knowledge ingestion · base.py Agent workers
Components 24
Access and API
- FastAPI service
engine/main.py - Authentication and RBAC
engine/auth/security.py - Tenant persistence
engine/db/storage.py
Agent Workflows
- Directive orchestrator
engine/orchestra/orchestrator.py - Agent registry
engine/agents/registry.py - Agent workers
engine/agents/base.py - Tool registry
engine/mcp/base.py - Prompt guard
engine/prompt_guard.py - Live event stream
engine/orchestra/events.py
Knowledge and Models
- RAG retrieval
engine/rag/retriever.py - Knowledge ingestion
engine/rag/ingest.py - Vector store
engine/rag/store.py - Embedding service
engine/rag/embeddings.py - Obsidian vault
engine/obsidian/mapper.py - LLM provider
engine/llm/provider.py
Consulting and Operations
- Review-only plans
engine/orchestra/langgraph_conjunction.py - SASTRAVA workflows
engine/sastrava/workflows.py - Service catalog
engine/sales/services_catalog.py - CRM and outreach
engine/sales/router_v1.py - Security review
engine/security/toolchain.py - Hub and tenant queues
engine/hub_api.py
Operator Interfaces
- Browser workspace
frontend/src/workspace.tsx
Other components
- Human operator
- Hosted or local LLM
Connections 29
- Human operator → FastAPI service: submits request
README.md - FastAPI service → Authentication and RBAC: authenticates
engine/main.py - FastAPI service → Directive orchestrator: routes directive
engine/main.py - Directive orchestrator → Agent registry: selects agents
engine/orchestra/orchestrator.py - Directive orchestrator → Agent workers: runs swarm
engine/orchestra/orchestrator.py - Directive orchestrator → RAG retrieval: requests context
README.md - Agent workers → LLM provider: reasons with
README.md - Agent workers → Tool registry: uses tools
- Directive orchestrator → Prompt guard: guards prompts
engine/orchestra/orchestrator.py - Directive orchestrator → Live event stream: emits events
engine/orchestra/orchestrator.py - FastAPI service → Live event stream: serves stream
README.md - Knowledge ingestion → Embedding service: creates vectors
- Knowledge ingestion → Vector store: stores chunks
engine/rag/ingest.py - RAG retrieval → Vector store: searches vectors
engine/rag/retriever.py - Vector store → Embedding service: embeds text
engine/rag/store.py - Knowledge ingestion → Obsidian vault: indexes vault notes
- Directive orchestrator → Obsidian vault: writes deliverables
README.md - Directive orchestrator → LLM provider: synthesizes result
engine/orchestra/orchestrator.py - LLM provider → Hosted or local LLM: sends inference
engine/llm/provider.py - FastAPI service → Tenant persistence: persists tenant data
engine/main.py - FastAPI service → SASTRAVA workflows: routes consulting
engine/main.py - SASTRAVA workflows → Service catalog: uses services
- FastAPI service → CRM and outreach: serves CRM
engine/main.py - FastAPI service → Review-only plans: exposes planning
engine/main.py - FastAPI service → Security review: exposes review tools
engine/main.py - FastAPI service → Hub and tenant queues: serves Hub APIs
engine/main.py - Browser workspace → FastAPI service: calls API
README.md - FastAPI service → Browser workspace: returns workspace data
README.md - Authentication and RBAC → Tenant persistence: uses persistence
engine/auth/security.py