Architecture
For whoever evaluates the platform: how it's built and how it separates each client. Installation is in the repository's deployment manual (docs/DEPLOYMENT.md).
Components
| Layer | Technology |
|---|---|
| Server | Go, a single service (modular monolith) |
| Database | PostgreSQL 16 |
| Panel and portals | React and TypeScript |
| Files | Encrypted object storage (S3) |
| AI | Claude, through Anthropic's API |
| Infrastructure | AWS, in the firm's own account |
One database per client
Control database
clients and their status · firm team and assignments · requests
agent budget · holidays · limitation periods · team notices
Client A database Client B database Individuals' common space
portfolio, cases, portfolio, cases, cases and documents,
documents, activity documents, activity isolated per personEach request resolves which database it goes to from the session. The firm team reaches a client's database only if assigned to it.
Fixed rules and AI model
Anything with legal or financial consequences is computed with fixed rules, never by the model: deadlines and holidays, limitation, debtor contact limits, amounts and installments, currency conversions. The AI model proposes (a debt's next step, a message), and a person at the firm decides.
Periodic processes
Inside the same server, with no separate services: deadline and abandonment notices (hourly), scheduled sends to debtors (every 5 minutes) and deletion of expired data (daily). With several instances, each notice or send is done by only one.