An AI-augmented agent pipeline that automates third-party vendor controls testing, exception analysis, and audit workpaper generation. Built to mirror the workflow a TPRM analyst performs manually — running end-to-end in seconds, with every conclusion traceable to the underlying evidence.
Modern TPRM teams spend most of their time on three repetitive activities. All three are pattern-matching tasks well-suited to an LLM operating under audit-grade constraints — deterministic schemas, traceable evidence references, no hallucinated conclusions. TPRM Copilot wraps Claude in exactly those constraints.
--demo mode that runs without an API key.
Every input is loaded into a typed model. Every agent's output is persisted to JSON. The final workpaper references those JSON artifacts so the chain of evidence is fully traceable — a finding in the RCM points to a TestResult, which points to a Transaction record, which points to the source file.
Each agent is a thin orchestrator around a Claude call with a strictly-typed Pydantic output schema. Here's the agent that classifies exceptions into findings — the LLM gets a system prompt scoped to a single responsibility and a schema that constrains the response.
Real output from tprm-copilot run --demo against the bundled Sample Tech Co. case. Demo mode is deterministic — no API key required — so this output is byte-stable across runs and acts as the regression test for the agent pipeline.
| ID | Finding | Severity | Affected Controls |
|---|---|---|---|
| F-1 | Wrong Approver — Incorrect Reviewer Assignment by Portal. Intra-year personnel reassignment not reflected in the Portal Table of Employee Supervisors; auto-routed to previous (incorrect) supervisor. |
High | C3, C7 |
| F-2 | Retroactive Approval — Vendor Engaged Before Required Approval. Vendor invoice predates Portal approval by 8 days. Pre-engagement timing control is policy-based with no system-level preventive check. |
High | C6 |
| F-3 | Absent Control — No Approved Vendor Listing / Independent Vendor Vetting. Vendor appropriateness assessed solely by individual supervisor judgment at point of approval. No preventive vendor-vetting control exists. |
Medium | (design gap) |
Every run emits machine-readable JSON artifacts (for downstream tooling and audit trail) plus auditor-facing Excel + Markdown workpapers. The bundled sample outputs are committed to the repo for inspection.
Modern Python with strict type contracts. Claude as the reasoner; deterministic Python everywhere else.
anthropic (Claude API)pydantic v2 for every input/outputopenpyxl for branded XLSX RCMclick CLI · rich for live progress tablespython-dotenv for credential managementpip install tprm-copilotpytest regression suite over demo modeNIST SP 800-53 (Vendor Management family)COSO Internal ControlTPRM Lifecycle (intake → monitoring → offboarding)v0.1 is a reference implementation aimed at a single workflow (vendor engagement). The shape generalizes to the broader TPRM lifecycle — intake, ongoing monitoring, and offboarding.