How sj-thakur/crucible-prototype works
Crucible is an organization-controlled agent workspace platform. Its current user workflow is to sign in, enter an authorized workspace, and submit a workspace-scoped task; the API coordinates execution through context assembly, a local model gateway, and tools, then persists run state. CRM Operations adds explicit synthetic-account assignment and read-only meeting briefs or account-scoped tasks. Consequential tool actions pause for human approval. The graph reflects documented capabilities, but several routes and services were only indexed or partially excerpted, so uncertain connections are omitted.
Main entry points: app.py FastAPI app · runner.py Run coordinator · crm_routes.py CRM account routes · tools.py Tool broker
Components 20
User experience
- Web app
frontend/App.tsx - FastAPI app
src/api/app.py
Identity and governance
- Authentication routes
src/api/routes/auth_routes.py - Token authentication
src/control_plane/auth.py - Workspace management
src/api/routes/workspace_routes.py - Access and tool policy
src/control_plane/policy.py - Approval routes
src/api/routes/approval_routes.py - Human approval service
src/control_plane/approvals.py
Task execution
- Run routes
src/api/routes/run_routes.py - Run coordinator
src/execution_plane/runner.py - Workspace context
src/execution_plane/context.py - Local model gateway
src/execution_plane/gateway.py - Tool broker
src/execution_plane/tools.py
CRM capability
- CRM account routes
src/api/routes/crm_routes.py - Synthetic CRM data
src/crm/synthetic_source.py - Meeting brief builder
src/crm/meeting_brief.py
Persistence
- Workspace database
src/database/models.py - Database sessions
src/database/connection.py
Other components
- Workspace user
- Ollama model service
Connections 30
- Workspace user → Web app: uses
README.md - Web app → FastAPI app: accesses
- FastAPI app → Authentication routes: registers routes
- Authentication routes → Token authentication: authenticates
src/api/routes/auth_routes.py - Token authentication → Database sessions: loads user
src/control_plane/auth.py - Database sessions → Workspace database: sessions query
src/database/connection.py - FastAPI app → Workspace management: registers routes
- Workspace management → Access and tool policy: checks access
src/api/routes/workspace_routes.py - Workspace management → Workspace database: reads and writes
src/api/routes/workspace_routes.py - FastAPI app → Run routes: registers routes
- Run routes → Access and tool policy: checks access
src/api/routes/run_routes.py - Run routes → Run coordinator: executes run
src/api/routes/run_routes.py - Run routes → Workspace database: reads and writes
src/api/routes/run_routes.py - Run coordinator → Workspace context: assembles context
src/execution_plane/runner.py - Run coordinator → Local model gateway: requests inference
src/execution_plane/runner.py - Local model gateway → Ollama model service: sends inference
src/execution_plane/gateway.py - Run coordinator → Tool broker: dispatches tools
src/execution_plane/runner.py - Tool broker → Access and tool policy: checks permission
src/execution_plane/tools.py - Tool broker → Workspace context: searches or stores
src/execution_plane/tools.py - Tool broker → Human approval service: requests approval
src/execution_plane/tools.py - FastAPI app → Approval routes: registers routes
- Approval routes → Human approval service: handles decisions
src/api/routes/approval_routes.py - Human approval service → Tool broker: executes approved tool
src/control_plane/approvals.py - FastAPI app → CRM account routes: registers routes
- CRM account routes → Access and tool policy: checks access
src/api/routes/crm_routes.py - CRM account routes → Synthetic CRM data: lists accounts
src/api/routes/crm_routes.py - CRM account routes → Meeting brief builder: builds brief
src/api/routes/crm_routes.py - CRM account routes → Workspace database: reads assignments
src/api/routes/crm_routes.py - Run coordinator → Synthetic CRM data: loads CRM evidence
src/execution_plane/runner.py - Run coordinator → Workspace database: persists run state
src/execution_plane/runner.py