Synergy Pro Painting requires a production-ready Custom Python Services platform that acts as the authoritative security, authority, calculation, persistence, integration, and infrastructure layer for its business operations. The platform sits between human operators (via a Command Center) and the CrewAI AI workforce, and serves as the single controlled gateway to external systems such as Jobber, QuickBooks, email, calendar, weather, mapping, marketing, and storage.
This document defines the system as a set of enforceable, testable requirements. The core intent is a strict separation of concerns:
Security, authorization, policy, and deterministic calculations must never depend on LLM prompts, agent instructions, UI restrictions, frontend validation, or natural-language policy. No AI agent may bypass the platform, and no external system may be treated as trusted without validation.
The platform is a modular Python backend/runtime that mediates every consequential action across the following hierarchy:
HUMAN AUTHORITY
↓
COMMAND CENTER
↓
SECURITY + AUTHORIZATION
↓
BUSINESS POLICY
↓
CUSTOM PYTHON SERVICES
↓
CREWAI WORKFORCE
↓
AUTHORIZED TOOLS
↓
EXTERNAL SYSTEMS
Internally, requests flow through the following control chain:
COMMAND CENTER
↓
API GATEWAY
↓
AUTHENTICATION
↓
AUTHORIZATION
↓
POLICY / AUTHORITY ENGINE
├── APPROVAL ENGINE
├── AUDIT ENGINE
├── EVENT BUS
\x20\xe2\x94\x94── EXECUTION ENGINE
↓
CREWAI RUNTIME ADAPTER
↓
TOOL GATEWAY
├── JOBBER
├── QUICKBOOKS
├── EMAIL
├── CALENDAR
├── WEATHER
├── MAPPING
├── MARKETING
├── STORAGE
\x20\xe2\x94\x94── FUTURE INTEGRATIONS
The platform must remain modular enough that future AI agents, crews, integrations, companies, services, and business modules can be added without redesigning the security architecture. The system builds the actual working backend — it is not a demo, prototype, tutorial, mockup, conceptual architecture, or partial implementation.
.env.example providing variable names only.synergy_python_services/ with app/ subpackages: api, auth, authorization, policies, approvals, agents, crews, orchestration, tools, integrations, calculations, estimating, persistence, models, schemas, events, workers, audit, observability, evaluation, security, configuration, exceptions, and main.py.tests/ containing unit, integration, security, evaluation, calculations, and regression suites.migrations/, scripts/, config/, docs/, Dockerfile, docker-compose.yml, requirements.txt, pyproject.toml, .env.example, and README.md present at the project root./api/v1/ version prefix so that future versions can coexist.No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No user flows yet.
The User Flow Agent will generate per-persona navigation diagrams after SRD updates.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No user flows yet.
The User Flow Agent will generate per-persona navigation diagrams after SRD updates.
No comments yet. Be the first!