TCRIA is a governance-oriented system for legal evidence processing.
It is designed to help organize heterogeneous legal materials, preserve documentary traceability, and generate auditable bundles without turning the system into an automatic accusation engine. The core objective is to keep evidence processing structured while leaving legal judgment and narrative responsibility with the human operator.
TCRIA helps teams and operators:
The project is intentionally focused on organization, chain of custody, and governance discipline.
TCRIA treats document processing as a custody workflow:
This makes the system useful for:
TCRIA is built around a simple rule: automation can organize and audit evidence, but accountability for accusatory narrative promotion must remain human-declared.
The system therefore applies governance checks such as:
[TCR-IA DECISION RECORD]
responsibleHuman: Rodrigo Baptista da Silva
declaredPurpose: Auditoria documental e organização de evidências para fins jurídicos
approved: YES
approvedAt: 2026-03-05
[/TCR-IA DECISION RECORD]
TCRIA intentionally does not:
The repository is organized so that code, operational scripts, documentation, and example artifacts are visually separated.
.
├── tcria/ # Core package: engine, models, CLI support, settings
├── api/ # FastAPI application
├── app/ # Streamlit entrypoints / app layer
├── scripts/ # Script-oriented utilities and legacy helpers
├── docs/ # Architecture and domain documentation
│ └── project-snapshots/ # Saved project structure snapshots and diffs
├── examples/
│ ├── audit-artifacts/ # Versioned sample outputs and reports
│ └── demo_case_documents/# Example input materials
├── tests/ # Automated tests
├── run_governance_pipeline.py
├── app.py
└── pyproject.toml
tcria/: reusable product logic.api/: HTTP entrypoints and request/response orchestration.app/: UI/app runtime layer.scripts/: operational scripts and support generators.docs/: conceptual documentation and project snapshots.examples/: curated example inputs and sample generated artifacts.From the repository root:
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .
tcria scan ~/Downloads --strict
tcria product-audit ~/Downloads --strict --out-dir output/audit --output-stem audit
tcria product-audit ~/Downloads --strict --official-pipeline --output-stem my_case
python3 run_governance_pipeline.py --path ~/Downloads --strict --output-stem my_case
python3 run_governance_pipeline.py --path ~/Downloads --strict --legacy-audit-script --output-stem my_case
tcria case init complice
tcria case run complice --strict
tcria investigate complice
Run the API locally:
uvicorn api.api:app --reload
Main endpoints:
GET /healthGET /capabilitiesPOST /auditPOST /audit/official-pipelineGET /responses/audit-typesGET /responses/institutional-profilesPOST /responses/auditPOST /responses/institutional-outputPOST /audit/openai-summaryPOST /cases/initPOST /cases/runPOST /cases/investigatePOST /investigations/full-runPOST /conclusions/from-bundleThe architecture overview in docs/architecture-overview.md is kept as the project’s current high-level representation. Operational implementation remains package- and script-oriented, and the repository structure is organized to support that working style cleanly.
To keep the repository root clean and professional:
examples/audit-artifacts/;docs/project-snapshots/;output/ or case folders.This repository now prioritizes: