tcria

TCRIA

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.


Executive summary

TCRIA helps teams and operators:

The project is intentionally focused on organization, chain of custody, and governance discipline.


What the system does

TCRIA treats document processing as a custody workflow:

  1. document ingestion;
  2. classification;
  3. traceability signals;
  4. governance gates;
  5. audit bundle generation.

This makes the system useful for:


Governance boundaries

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:

Decision record example

[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]

What TCRIA does not do

TCRIA intentionally does not:


Repository structure

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

Folder conventions


Installation

From the repository root:

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .

CLI usage

Basic scan

tcria scan ~/Downloads --strict

Modular product audit

tcria product-audit ~/Downloads --strict --out-dir output/audit --output-stem audit

Official pipeline mode

tcria product-audit ~/Downloads --strict --official-pipeline --output-stem my_case

Direct pipeline command

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

Case workspace flow

tcria case init complice
tcria case run complice --strict
tcria investigate complice

API

Run the API locally:

uvicorn api.api:app --reload

Main endpoints:


Architecture note

The 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.


Sample artifacts and snapshots

To keep the repository root clean and professional:


Current professionalization goals

This repository now prioritizes: