Veta
Mining compliance that goes live in days, not months
The code lives in a private repository; this sheet and the demo, when there is one, show the work.
- Status
- Live demo
- Type
- Enterprise AI system
- Started
- October 2026
- Role
- Sole engineer
- Domains
- compliance, aml, mining, legal ops
- Stack
- TypeScript, Nextjs, React, Tailwindcss, Shadcn Ui, Prisma, PostgreSQL, Auth Js, Gotenberg, Docker Compose, Vitest, Playwright
Veta Live demo Mining compliance that goes live in days, not months
Enterprise AI system
Context and problem
Contract and compliance platform for mining, built for production with Terraform, Cloud Run and Zero Trust.
Small mining companies are obligated subjects of the Peruvian AML regime (SPLAFT) and manage it with e-mail and spreadsheets: third-party onboarding takes weeks, contracts miss mandatory clauses, files are incomplete at inspection (assumption documented in the repository, spec 15 §1.1).
Screens
How it was built
765 tests · 5 audits
From the build report, 21 November 2026.
Decisions and trade-offs
- The compliance officer decides what the law reserves to them: no automatic suspicious-transaction report and no model sets a risk level, instead of letting a model automate low-risk decisions: legal responsibility stays with a person, and prompt injection cannot approve anything. (ADR-0002)
- An append-only audit log, hash-chained per tenant, under a database role with no UPDATE or DELETE, instead of a plain insert-only table or an external ledger: anyone can detect tampering with no extra infrastructure. The record states it detects, not prevents, tampering by a database administrator. (ADR-0004)
- Risk rules and the risk matrix as versioned per-tenant configuration run by a pure rules engine, instead of hard-coded rules or a model classifying risk: decisions are reproducible and explainable, and changing a rule needs no deploy. (ADR-0003)
- A modular monolith over a shared core, instead of microservices per module or an unstructured monolith: one deployment at minimal cost (under 60 USD per client a month), and a module can still be extracted later. (ADR-0001)
- Ed25519 signatures for the offline mine-gate list and exported certificates, with the private key kept on the server, instead of HMAC or an X.509 PKI: with HMAC the gate would hold the secret, so a stolen gate device could forge or extend a list. (ADR-0014)
Results
Outcomes as stated in the manifest; the measured figures are the ones with a date.
- Veta Contratos for Windows (15b): a desktop installer, data in a folder the user picks, the PDFs beside it.
- Veta Contratos in the browser (15c): runs fully in the visitor's browser (IndexedDB), no server, synthetic data.
Highlights
regulated domain, modular suite, human in the loop by law, immutable audit, dynamic clauses, low cost saas