How danzeroum/central_inteligencia_juridica works
A multi-agent legal-intelligence platform with a React workspace and administration console, plus a substantial fiscal-compliance workflow. The documented legal-query flow delegates from a supervisor to tribunal specialists; the fiscal worker excerpt shows processing and persistence. The frontend’s route composition and API client are visible, but most backend route wiring and several major feature implementations were not sampled, so those links are omitted rather than inferred.
Main entry points: App.jsx Workspace and admin SPA · supervisor_agent.py Supervisor agent · client.js API client · tasks.py Fiscal processing worker
Components 22
User experience
- Workspace and admin SPA
frontend/src/App.jsx - API client
frontend/src/api/client.js - Shared UI primitives
frontend/src/components/primitives.jsx - Toast notifications
frontend/src/components/toast.jsx - Legal workspace
frontend/src/screens/user - Admin console
frontend/src/screens/admin - Fiscal workspace
frontend/src/screens/fiscal
Legal intelligence
- Supervisor agent
src/agents/supervisor_agent.py - Tribunal specialists
src/agents/tribunal_api_client.py - Weighted consensus
src/consensus/weighted_voting.py - Vector memory and RAG
src/memory/vector_memory.py
Fiscal compliance
- Fiscal API routes
src/api/routes/fiscal.py - Fiscal processing worker
src/workers/tasks.py - SPED rules engine
src/fiscal/rules_engine.py - Fiscal repositories and records
src/fiscal/repository.py
Governance and learning
- HITL and autonomy
src/hitl/progressive_autonomy.py - Decision ledger
src/utils/ledger.py - Continuous training
src/training/training_manager.py - Adaptive learning router
src/routing/learning_router.py
Platform services
- FastAPI application
src/api/main.py - SQL database
src/db/engine.py
Other components
- User
Connections 18
- User → Workspace and admin SPA: uses
README.md - Workspace and admin SPA → Legal workspace: routes to
frontend/src/App.jsx - Workspace and admin SPA → Admin console: routes to
frontend/src/App.jsx - Workspace and admin SPA → Fiscal workspace: routes to
frontend/src/App.jsx - Workspace and admin SPA → API client: uses
frontend/src/App.jsx - API client → FastAPI application: requests
frontend/src/api/client.js - API client → Shared UI primitives: uses
- Toast notifications → Shared UI primitives: renders
frontend/src/components/toast.jsx - Supervisor agent → Tribunal specialists: delegates to
README.md - Supervisor agent → Weighted consensus: coordinates
- Vector memory and RAG → Legal workspace: supports queries
- Fiscal API routes → Fiscal processing worker: dispatches
- Fiscal processing worker → SPED rules engine: validates with
src/workers/tasks.py - Fiscal processing worker → Fiscal repositories and records: persists results
src/workers/tasks.py - Fiscal repositories and records → SQL database: stores in
- Continuous training → Adaptive learning router: updates routes
src/training/training_manager.py - Supervisor agent → HITL and autonomy: uses autonomy
- Supervisor agent → Decision ledger: records decisions