Skip to main content

Governance patterns for autonomous AI agents in regulated financial services

Project description

finserv-agent-audit

Audit-trail, kill-switch, and model-risk governance for autonomous AI agents in regulated financial services — zero runtime dependencies, examination-ready by design (no examination completed; see LIMITATIONS.md §9a).

CI Coverage Tests License: MIT OR Apache-2.0 Python 3.12+ DOI Autonomy Ladder family

What this is: composable, dependency-free Python governance primitives — a risk-state machine, a non-overridable sovereign veto, a tamper-detecting audit chain, and an A0→A4 autonomy gate — plus FSI-specific controls and primary-source regulatory mappings, for autonomous agents that must survive a regulatory audit, a risk committee, and a 3am incident.

What this is not: a model, an agent framework, or legal advice. It governs whatever agent runtime you already run (LangGraph, CrewAI, A2A, Microsoft Agent Framework, or your own) — it does not make decisions; it constrains, records, and proves them.

Who this is for: an FSI model-risk / compliance lead who has to produce a defensible per-decision trail on demand — or a frontier-lab / cloud-FSI applied lead who needs the same veto / envelope / audit-chain / demotion primitives on any high-stakes coordinated-autonomy stack, financial or not.


30-second tour

Zero install, no network — clone and run the demotion-gate demo:

git clone https://github.com/linus10x/finserv-agent-audit.git
cd finserv-agent-audit
./demo.sh        # grant→examine→revoke, then 4 attacks a hash-chain alone would miss — each caught

./demo.sh builds an authority lifecycle (an agent is granted A3 against evidence, examined, then revoked to A1 — the revocation recorded against the finding that triggered it), anchors the revoked head to an external witness, then runs four attacks and proves each is caught: a forged grant with no evidence (caught by the semantic verifier), a deleted revocation / head-truncation and a backdated regeneration (both caught by the external-anchor verifier), and an in-place mutation (caught by the hash-chain verifier). It exits non-zero if any expected catch fails to fire — a green run is the proof, not the printout. No pip install, no credentials, no network.

Full dev setup (the rest of the library):

pip install -e ".[dev]"

python examples/defcon_state_machine.py        # risk-state machine: NORMAL → HALT with hysteresis
python examples/agent_coordination/coordination.py   # veto / envelope / audit-chain / demotion, domain-agnostic
pytest tests/ -q                               # full suite · mypy --strict clean

The DEFCON demo writes a JSON audit trail; the coordination demo prints a hash-chained ledger that ends in verify() = True.

Receipts: 661 tests · 93% coverage (≥90% CI gate) · mypy --strict clean across 46 source files · 0 runtime dependencies · 34 governance ADRs · 46 regulatory mapping docs · CI runs CodeQL · Bandit · pip-audit · gitleaks · OSV-Scanner on every push, every third-party Action SHA-pinned. Current version: v2.2.0.

Read me first

  1. The best illustrative testtests/test_sovereign_veto.py: the kill switch is infrastructure, not a flag. The clearest single proof is that an agent cannot clear its own veto (test_*self_clear*) — read that one test and you understand the trust boundary the whole library defends.
  2. WORKED_EXAMPLE.md — a five-beat walkthrough (decision class → agent acts → envelope/veto catches the irreversible action → audit-chain entry → A3→A2 demotion) over the runnable examples/agent_coordination/coordination.py.
  3. autonomy-ladder.io — the framework and whitepaper this library implements. The rung-by-rung mapping for this repo is in AUTONOMY_LADDER.md.

Install

git clone https://github.com/linus10x/finserv-agent-audit.git
cd finserv-agent-audit
pip install -e .            # governance core, zero runtime dependencies
# optional extras: [dev] [test-property] [api] [a2a] [langgraph] [maf] [crewai] [all-agentic]

The wall every team hits

You ship an autonomous agent into a regulated workflow. It runs fine for weeks. Then it does something unexpected — a runaway position, an adverse-action decision with no reason code, a customer commitment it had no authority to make — and the compliance review asks three questions you cannot answer: Where is the audit trail? Where is the kill switch? Where is the governance framework a regulator will accept?

AI-safety research answers alignment. Compliance frameworks govern humans. Neither addresses the operational reality of an agent making hundreds of decisions a day inside a risk-managed financial system.

This repository is that missing layer — battle-tested governance patterns extracted from a multi-year build of a six-agent autonomous program, not academic proposals, for teams whose agents must survive a regulatory audit, a risk committee, and a 3am incident.

What this is — and what it is not

  • It is a set of composable, dependency-free Python governance primitives (risk-state machine, sovereign veto, tamper-detecting audit chain, autonomy-ladder gating) plus FSI-specific controls and primary-source regulatory mappings.
  • It is not a model, an agent framework, or legal advice. It governs whatever agent runtime you already run (LangGraph, CrewAI, A2A, Microsoft Agent Framework, or your own). It does not make decisions; it constrains, records, and proves them.

Why this exists for frontier autonomy stacks

The controls in this library are domain-agnostic. The DEFCON state machine, the non-overridable sovereign veto (a separate-process control the agent cannot switch off), the hash-chain audit ledger (it detects tampering within its trust boundary), the hard envelopes with mechanical escalation, the sampled-review tripwires, and monitor-led promotion were forged in real multi-agent production systems under consequence — and they apply directly to any high-stakes coordinated autonomy (vehicles, robots, agent swarms) where invisible promotion or cascade failure is unacceptable. The decision class is a parameter: this repo encodes it for cross-vertical financial services, but the same A0→A4 deployment-authority structure lifts into any decision class without inheriting financial-services assumptions.

For reviewers & safety teams: every control here is falsifiable — the test suite (661 tests · mypy --strict · zero runtime deps) turns each rule into a runnable check, and the veto and ledger are infrastructure with operational properties (separate process boundary, distinct credentials, a gate the agent cannot reach; write-once retention). These are reference implementations for adoption, not deployed production controls.

Part of the Autonomy Ladder™ family

Six co-equal regulated-vertical reference libraries implementing the Autonomy Ladder — a governance framework for autonomous AI in regulated operations (A0→A4, every rung demotable). Framework + whitepaper: autonomy-ladder.io · family index: autonomy-ladder-libraries. How this repo's primitives map to the rungs: AUTONOMY_LADDER.md.

Vertical Library
Cross-vertical financial services finserv-agent-audit
Banking (model risk · ECOA/Reg B · BSA/AML/OFAC) banking-agent-audit
Payments (OFAC · Reg E · rail finality) payments-agent-audit
Health-insurance payer (UM · prior auth · appeals) payer-agent-audit
SEC-registered investment advisers (Advisers Act §206) private-capital-agent-audit
Commercial real estate cre-agent-audit

Quick Start

# Clone and install
git clone https://github.com/linus10x/finserv-agent-audit.git
cd finserv-agent-audit
pip install -e ".[dev]"

# Run the DEFCON state machine demo
python examples/defcon_state_machine.py

# Run tests
pytest tests/ -v

Under 60 seconds from clone to running demo. The state machine simulates 10 evaluation cycles, prints the DEFCON level at each step, and writes a JSON audit trail to output/demo_audit.jsonl:

Scenario                     DEFCON Level
------------------------------------------
Normal conditions            NORMAL
Light drawdown               CAUTION
Moderate drawdown            ALERT
Stress — DANGER              DANGER
Recovery eval 1/3            DANGER      ← hysteresis holding
Recovery eval 2/3            DANGER      ← hysteresis holding
Recovery eval 3/3            ALERT       ← confirmed de-escalation
Continued recovery 1/3       ALERT       ← hysteresis holding
Continued recovery 2/3       ALERT       ← hysteresis holding
Continued recovery 3/3       CAUTION     ← confirmed de-escalation

Audit trail written to: output/demo_audit.jsonl
State persisted to:     output/demo_state.json

Domain-agnostic: see examples/agent_coordination/ — the same veto / envelope / audit-chain / demotion primitives applied to a non-financial agent swarm in under 60 seconds (python examples/agent_coordination/coordination.py).


Architecture Overview

DEFCON Risk-State Machine

Every agent in a regulated system needs a risk-state machine that degrades gracefully, escalates conservatively, and de-escalates only after sustained confirmation.

stateDiagram-v2
    direction LR
    [*] --> NORMAL

    NORMAL --> CAUTION : drawdown > caution threshold
    CAUTION --> NORMAL : 3 consecutive evals below caution [hysteresis]
    CAUTION --> ALERT : drawdown > alert threshold
    ALERT --> CAUTION : 3 consecutive evals below alert [hysteresis]
    ALERT --> DANGER : drawdown > danger threshold
    DANGER --> ALERT : 3 consecutive evals below danger [hysteresis]
    DANGER --> HALT : drawdown > halt threshold
    HALT --> DANGER : manual override + 3 confirmations only

    NORMAL : NORMAL\nFull execution\nAll strategies active
    CAUTION : CAUTION\nReduced position sizing\nHeightened monitoring
    ALERT : ALERT\nHalf position sizing\nSovereign veto armed
    DANGER : DANGER\nEmergency sizing only\nNew entries blocked
    HALT : HALT\nAll execution suspended\nHuman-in-the-loop required

Sovereign Veto Architecture

flowchart TD
    A[Agent Decision] --> B{Autonomy Level}
    B -->|A0 — Informational| C[Read & Recommend — Human Decides]
    B -->|A1 — Assisted| D[Draft → Human Approves Write]
    B -->|A2 — Delegated| E[Write in Envelope → Sampled Review]
    B -->|A3 — Supervised Autonomous| F[Autonomous Write → Sovereign Veto + Audit]
    B -->|A4 — Production Autonomous| G[Autonomous → Audit Trail of Record]

    E --> H{Sovereign Veto?}
    F --> H
    G --> H
    H -->|VETO| I[Immediate Halt + Escalate]
    H -->|PASS| J[Execution Proceeds]

    style I fill:#d73027,color:#fff
    style C fill:#4575b4,color:#fff
    style J fill:#1a9850,color:#fff

Audit Chain (Tamper-Detecting Hash Chain)

flowchart LR
    E1[Event N] -->|SHA-256 hash| H1[Hash N]
    H1 --> E2[Event N+1]
    E2 -->|SHA-256 hash of\nevent + prev hash| H2[Hash N+1]
    H2 --> E3[Event N+2]
    E3 --> H3[Hash N+2]
    H3 --> V[Verifier\nDetects any\ntampering]

    style V fill:#4575b4,color:#fff

Security & assurance

Governance code that cannot itself be trusted is theater. The assurance posture is part of the deliverable:

  • Hardened to a Tier-1 buyer bar. v2.1 closed all 12 Critical findings (CR-1..CR-12) from a May 2026 six-chamber adversarial deep-dive (architecture · code · security · test-strategy · DevOps · deployment), calibrated to the questionnaire bar Tier-1 FSI buyer review boards apply: a consolidated AuditChainTamperError; a frozen, self-verifying AuditEvent; TSA pre-digest bound to event content; a thread- and process-safe AuditChain; a domain-separated genesis hash; PII handled via HashedSubjectId + SubjectIdHasher; a bounded RFC 3161 DER codec with a structural ASN.1 walk and Hypothesis fuzz; an Authorizer Protocol with a self-clearing rule; and a deploy-time-pinned BaselineMIProxy scaffold. Per-CR detail in CHANGELOG.md § 2.1.0.
  • Zero runtime dependencies. The base wheel declares dependencies = []. Every optional integration (FastAPI, the four agentic-runtime adapters, OTel, MCP, Sigstore/OpenTimestamps witnesses) is import-guarded behind an HAS_X flag and a named install extra, so the governance core never pulls a transitive supply-chain surface you did not ask for.
  • Receipts, run locally: 661 tests passing · 93% coverage (enforced ≥90% gate, CI fails below) · mypy --strict clean across 46 source files · ruff + format + banned-term + tamper-language drift lints clean · a Hypothesis property-based fuzz harness on the hand-rolled DER codec · an adversarial test pack (tests/adversarial/: Garak probes + Promptfoo scenarios + a Python harness coordinating both, per ADR-0034).
  • Supply-chain CI on every push: CodeQL · Bandit · pip-audit · gitleaks · OSV-Scanner, with every third-party GitHub Action SHA-pinned. PyPI Trusted Publishing with PEP 740 Sigstore-attested wheels.
  • Built for examination (no examination completed — see LIMITATIONS.md §9a). ASSURANCE-GUIDE.md is a Big-4 audit-evidence walkthrough (v2.0 PCAOB AS 2201 amendments appendix at docs/pcaob_as_2201_amendments_2026_appendix.md); docs/tier1_buyer_prefills/ ships pre-filled SIG Lite, CSA CAIQ v4.0.3, and BITS Shared Assessments AUP questionnaires.

Patterns Included

Core governance (src/finserv_agent_audit/governance/)

Pattern Module Covers Regulation
DEFCON State Machine defcon.py Risk-state degradation with hysteresis EU AI Act Art. 9, 15
Sovereign Veto sovereign_veto.py Human-only kill switch EU AI Act Art. 14 · MiFID II Art. 17
Audit Chain audit_chain.py Tamper-detecting hash-chain logging (within-trust-boundary) EU AI Act Art. 12 · SEC 17a-4
Autonomy Ladder A0→A4 autonomy_ladder.py A2→A3 promotion-gate runtime helper EU AI Act Art. 14 · SR 11-7
Shadow Mode Rollout shadow_mode.py SR 11-7 pre-promotion parallel runs SR 11-7
LDA Search Harness lda_search.py Equally-accurate-less-discriminatory alternative search ECOA · CFPB Circular 2023-09
LLM Disparate-Impact Harness llm_disparate_impact_harness.py EEOC 4/5ths-rule DI testing for LLM-agent outputs ECOA · Mobley v. Workday
Effective Challenge Harness effective_challenge_harness.py Frontier-API model validation per SR 11-7 SR 11-7 · OCC 2026-13
Vendor Attestation Ledger vendor_attestation_ledger.py Third-party model attestation chain-of-custody Treasury FS AI RMF · DORA Art. 28
Retraining Cadence Monitor retraining_cadence_monitor.py Weekly / monthly / continuous fine-tune validation cadence SR 11-7 · OCC 2026-13
Deprecation Watch deprecation_watch.py Vendor model deprecation calendar with sunset-date assertions SR 11-7
Customer-Facing Chatbot Guardrail customer_facing_chatbot_guardrail.py Policy-grounded RAG + commitment interception + fabricated-policy block Moffatt v. Air Canada · EU AI Act Art. 13

Four Protocol seams (audit-chain integrity layer, ADR-0014 + ADR-0015)

Seam Module Default backend (stdlib-only) Opt-in stronger backends
Ledger persistence ledger_store.py + _sqlite + _jsonl + _worm InMemoryLedgerStore SQLite · JSONL · WORM (SEC 17a-4) · deployer DynamoDB / S3 Object Lock
Trusted time timestamp_source.py + rfc3161_codec.py LocalClock RFC3161Source (stdlib DER ASN.1 codec)
External witness witness_anchor.py none RekorWitness (Sigstore) · OpenTimestampsWitness · anchor_to_witness() helper
Verifier integrity mi_proxy.py LocalMIProxy (HMAC-SHA256) deployer SLSA / in-toto / cosign

FSI-specific governance (net-new for the financial-services vertical)

Pattern Module Covers Regulation / ADR
Vendor Score Gate vendor_score_gate.py Drift detection on (vendor_id, input_hash, model_version) ADR-0016
Model Inventory model_inventory.py SR 11-7 three-lines-of-defense model registry ADR-0007
Adverse-Action Gate adverse_action_gate.py Fails closed on missing reason-code mapping FCRA § 615 · CFPB Circular 2022-03
SAR Workflow Audit sar_workflow_audit.py AI-influenced SAR decision audit trail BSA / AML 31 U.S.C. § 5318(g)/(h)
Equity Audit equity_audit.py ECOA / Reg-B fair-lending pre-flight ECOA 12 C.F.R. § 1002.9
Best-Interest Check best_interest_check.py Broker-dealer / RIA recommendation gate SEC Reg-BI
Protected-Class Proxy Detector protected_class_proxy_detector.py Mutual-information arm shipped in v1.2 (closes the v1.1 deferral) ADR-0019

Reference agents (src/finserv_agent_audit/agents/)

Surface Module Purpose
AuditConsumer base base.py Accepts 4 Protocol seams + VendorScoreGate via one injection contract
AuditAgent · MonitorAgent · OrchestratorAgent audit.py · monitor.py · orchestrator.py Reference wiring

Reference integrations (examples/integration/, all stdlib-only by default; opt-in deps import-guarded)

splunk_audit_sink.py (HEC) · datadog_audit_sink.py (Logs API v2) · sigstore_rekor_witness_demo.py (public-good Rekor) · aws_dynamo_ledger_store.py (conditional-write split-brain prevention)

Agentic-AI ecosystem adapters (src/finserv_agent_audit/integrations/)

Adapter Module Wraps Install extra
A2A Audit Adapter a2a_adapter.py Google / Linux-Foundation Agent2Agent (A2A) Protocol — task-lifecycle and message-exchange events (ADR-0027) pip install finserv-agent-audit[a2a]
LangGraph Audit Callback langgraph_adapter.py LangGraph node / edge / conditional / human-in-the-loop interrupt callbacks (ADR-0028) pip install finserv-agent-audit[langgraph]
MAF Audit Adapter maf_adapter.py Microsoft Agent Framework agent-step + tool-call + orchestrator-handoff hooks (ADR-0029) pip install finserv-agent-audit[maf]
CrewAI Audit Adapter crewai_adapter.py CrewAI Crew / Agent / Task lifecycle hooks + tool-invocation events (ADR-0030) pip install finserv-agent-audit[crewai]

Convenience bundle: pip install finserv-agent-audit[all-agentic] installs all four adapters at once.

Platform surfaces

Surface Location Purpose
AIBOM Generator src/finserv_agent_audit/governance/aibom.py (AIBOMGenerator) One governance call → CycloneDX 1.7 ML-BOM + SPDX 3.0 AI Profile dual emit (ADR-0031)
Governance API src/finserv_agent_audit/integrations/governance_api.py (create_app) FastAPI REST surface (OpenAPI 3.1) + Server-Sent Events live stream for DEFCON, veto log, audit-chain verify, vendor-score drift, deprecation calendar, AIBOM emit; opt-in extra [api] (ADR-0032)
Kubernetes Operator deploy/k8s/ Three CRDs (AuditChain, SovereignVeto, ChainSink) + reconciler skeleton + Kyverno / OPA sample admission policies (ADR-0033)
Adversarial Test Pack tests/adversarial/ Garak probes + Promptfoo scenarios + Python harness coordinating both; per ADR-0034 and the ADR-0018 threat model

Regulatory mapping index (46 docs in docs/)

Interagency MRM (post-April 17, 2026): Interagency MRM 2026 Overlay · MRM Bridge Whitepaper Template — operational reference for agentic-AI workloads during the period between OCC Bulletin 2026-13 (joint OCC/FRB/FDIC, rescinds OCC 2011-12 and excludes generative + agentic AI from scope) and the forthcoming joint RFI. US Federal Reserve / OCC (legacy citation lineage): SR 11-7 · OCC 2011-12rescinded by OCC Bulletin 2026-13 (April 17, 2026); retained as conceptual ancestry. Consumer protection: GLBA Safeguards · FCRA / Reg V · ECOA / Reg B BSA / SOX / broker-dealer: BSA / AML · SOX 404 ITGC · SEC 17a-4 SEC + CFPB algorithmic posture: SEC Reg-BI · CFPB Circular 2022-03 · CFPB Circular 2023-09 (AVMs / algorithmic appraisal) · CFPB AI Lending Supervisory Landscape State + multi-jurisdiction posture: NYDFS Part 500 AI Mapping · State-AG AI Fair-Lending Matrix AI-management standards: NIST AI RMF · NIST AI 600-1 GenAI Profile · Treasury FS AI RMF · ISO/IEC 42001 · COSO ICAIR · EU AI Act Incident + disclosure artifacts: AI Incident Retrospective Template (NIST AI RMF GOVERN-6.2) · Disclosure Artifact Templates (adverse-action / model-use / vendor-AI) Liability anchors: FSI Settled Matters (Apple Card / NYDFS · CFPB Circular 2022-03 · CFPB v. Wells Fargo · SEC v. Schwab Intelligent Portfolios · cross-vertical TransUnion)

Procurement companion (vendor-clauses/)

Sales-tool-grade vendor-contract addenda for 6 FSI vendor classes: KYC · Fraud-Score · Credit-Decision · Robo-Advisor · AML Transaction Monitoring · Foundation-Model API (v1.3 — OpenAI / Anthropic / Google / AWS Bedrock / Azure OpenAI)

Governance surfaces

ARCHITECTURE.md · FAILURE-MODES.md (matrix-as-contract, 8 classes) · LIMITATIONS.md · DISCLAIMER.md · SHIP-RECEIPT.md · VERSIONING.md · NEGATIVE-USE-CASES.md · RESEARCH.md · ASSURANCE-GUIDE.md · DEPLOY-CHECKLIST.md · OWNERSHIP.md · docs/adr/ (34 governance ADRs)


How It Compares

finserv-agent-audit LangChain callbacks Microsoft agent-governance-toolkit OWASP LLM Top 10
Target FSI regulated systems General LLM apps Enterprise Azure Security awareness
Kill switch ✅ Sovereign Veto ✅ Partial
Audit trail ✅ Hash-chain ✅ Partial
Risk-state machine ✅ DEFCON 5-level
Regulation mapping ✅ EU AI Act, MiFID II, SEC ✅ EU AI Act
Zero dependencies ❌ (heavy) ❌ (Azure SDK) N/A
Runnable examples ✅ < 60 sec ⚠️ Complex setup
Python 3.12+ typed ✅ mypy strict ⚠️ Partial ⚠️ Partial N/A
Agentic-runtime adapters ✅ A2A · LangGraph · MAF · CrewAI ⚠️ LangChain only ⚠️ Azure-runtime only
AIBOM (CycloneDX 1.7 + SPDX 3.0) ✅ dual emit
REST governance endpoint ✅ FastAPI + SSE ⚠️ Azure-portal only
Kubernetes operator + CRDs ✅ AuditChain · SovereignVeto · ChainSink
Adversarial test pack ✅ Garak + Promptfoo + Python harness ⚠️ Awareness only

Real-World Use Cases

These patterns are not academic. They were extracted from an operational autonomous research system and have been applied in the following scenarios:

1. Ransomware recovery — no DR, 12-day window When production infrastructure was hard-downed with no disaster recovery available, the Audit Chain and DEFCON patterns provided a verifiable trail of every system decision during the reconstruction period — essential for post-incident regulatory reporting.

2. Autonomous agent — Phase 0 paper trading The DEFCON state machine governs a six-agent pipeline. It has prevented over 40 simulated runaway conditions during the paper-trading phase by halting execution before loss thresholds were breached.

3. EU AI Act readiness assessment The EU AI Act mapping document was used as a pre-audit checklist for a wealth management platform serving $750M+ AUM, mapping each automated decision point to the relevant Article requirements.

4. Compliance team onboarding The Autonomy Ladder (A0→A4) framework has been used to onboard compliance teams new to AI agent governance — it provides a vocabulary that bridges engineering and regulatory language.

For illustrative walkthroughs of how a given primitive would have engaged with the failure mode in named, on-record FSI enforcement matters (Wells Fargo · Schwab Intelligent Portfolios · CFPB Circular 2022-03), see CASE_STUDIES.md — honest reference framing, not a claim the control was deployed in any of those matters.


Who This Is For

  • Engineers building autonomous agents that execute in regulated environments (trading, lending, insurance, compliance)
  • Risk architects designing kill-switch and override mechanisms for AI systems
  • Compliance teams mapping AI agent behavior to EU AI Act, SEC Rule 15c3-5, MiFID II, or SOC 2 requirements
  • CTOs and Chief AI Officers establishing governance frameworks before regulators ask for them

Roadmap

Full versioned roadmap in ROADMAP.md.

  • Shipped through v2.1 — core governance patterns · four Protocol seams · FSI-specific controls · four agentic-AI runtime adapters (A2A · LangGraph · MAF · CrewAI) · AIBOM generator · FastAPI governance endpoint · Kubernetes operator + three CRDs · adversarial test pack · the CR-1..CR-12 Tier-1 buyer-hardening pack.
  • v2.2 (ecosystem completion) — DSPy + LlamaIndex Workflows adapters · GraphQL governance endpoint · UK FCA + Singapore MAS mappings · ProtectedClassProxyDetector SHAP/CDD arms · Sigstore cosign verification of the pinned baseline manifest.
  • v3.0 — async-native pattern variants · multi-region audit-chain federation with quorum-anchored witness commits · a WASM runtime for client-side guardrail evaluation.

Deployment

Two platform surfaces ship deployment artifacts that adopters can lift directly into a regulated environment:

  • Kubernetes operator + CRDsdeploy/k8s/ contains the controller manifests, three custom resource definitions (AuditChain, SovereignVeto, ChainSink), and Kyverno + OPA sample admission-policy bundles. See deploy/k8s/README.md for the one-page deploy walkthrough.
  • FastAPI governance endpointsrc/finserv_agent_audit/integrations/governance_api.py builds an OpenAPI 3.1 REST surface plus a Server-Sent Events live stream for AuditEvent flow. Install with pip install finserv-agent-audit[api]; serve via uvicorn finserv_agent_audit.integrations.governance_api:create_app --factory. See ADR-0032 for the design rationale, route inventory, and authn / authz integration points.

Earlier-version deployment walkthroughs (AWS / Azure) remain in DEPLOY-CHECKLIST.md.


Commercial Services

The framework is dual-licensed MIT OR Apache-2.0 — fork it, ship it, adopt it. The author offers paid productized advisory + assurance services for FSI institutions, Big-4 firms, BigLaw counsel, and PE operating partners that want hands-on deployment or examination-ready audit-evidence packs:

  • Diagnostic — 2-week structured gap-assessment against the OCC 2026-13 white-space + Treasury FS AI RMF + NIST AI 600-1 GenAI Profile · 5 deliverables incl. scored pre-examination self-assessment + 12-month remediation roadmap
  • Audit — 6-week implementation-grade engagement producing Big-4-handoff-ready evidence pack + SR 11-7 model-inventory + co-branded ASSURANCE-GUIDE walkthrough
  • Retainer — ongoing access · weekly regulatory-change digest · quarterly maturity rescore · monthly office hours · written Audit/Risk Committee report each quarter
  • Expert Witness — independent technical expert for fair-lending, model-risk-management, AI-audit-chain forensic depositions and reports
  • Fractional CAIO / CTO — 6-12 month interim engagement at FSI institutions and PE portcos; DFW-preferred, remote-friendly

Pricing, methodology pages, and intake form: autonomy-ladder.io/services · or LinkedIn DM with subject Diagnostic inquiry to Kunjar Bhaduri.

The authority moat sits on the public framework. The open artifact stays open; paid engagements adapt the framework to a buyer's specific risk surface, regulatory regime, and Big-4 audit-evidence requirements.


Community

If these patterns save you time in a compliance review or prevent a production incident, a ⭐ on the repo helps others find it. See CONTRIBUTING.md — first-timers, start with good first issue.


Limitations

This library constrains, records, and proves agent decisions; it does not make them, and it is not legal advice. The audit chain is a within-trust-boundary tamper-detection mechanism, not chain-of-custody on its own — pair it with an external witness (Rekor / OpenTimestamps) and a deployer-controlled verifier for chain-of-custody claims. The source autonomous program operates in paper-trading Phase 0; no live capital has been deployed. Full scope and non-goals in LIMITATIONS.md, DISCLAIMER.md, and NEGATIVE-USE-CASES.md.


Author

Kunjar Bhaduri — 25+ year FSI technology executive. Rescued a $750M multi-year wealth-management platform deal at Broadridge. Rebuilt production infrastructure on Azure during a 12-day ransomware attack with no DR available. Operator of a private quantitative options research program; these governance patterns were extracted from that program's operational discipline (multi-year build; hundreds of engineering sessions; the source system operates in paper-trading Phase 0 — no live capital deployed).

LinkedIn · NTCI Portfolio


Citation

If you use these patterns in your systems or research, please cite using CITATION.cff. Archival DOI: 10.5281/zenodo.20434570 (concept DOI — resolves to all versions).

The Autonomy Ladder family

One of six regulated-vertical reference libraries implementing the Autonomy Ladder — family index: autonomy-ladder-libraries.

This repo's primitive-to-rung mapping: AUTONOMY_LADDER.md. Anonymized enforcement-matter walkthroughs: CASE_STUDIES.md.


License

Dual-licensed under either MIT or Apache License 2.0 at the adopter's election. SPDX-License-Identifier: MIT OR Apache-2.0. See LICENSE, LICENSING.md, and NOTICE. For trademark posture (Autonomy Ladder™, ALO™ — governed separately from the source-code license per Apache 2.0 §6), see docs/TRADEMARK.md.

Changelog

See CHANGELOG.md for full release history.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

finserv_agent_audit-2.2.0.tar.gz (323.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finserv_agent_audit-2.2.0-py3-none-any.whl (238.6 kB view details)

Uploaded Python 3

File details

Details for the file finserv_agent_audit-2.2.0.tar.gz.

File metadata

  • Download URL: finserv_agent_audit-2.2.0.tar.gz
  • Upload date:
  • Size: 323.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for finserv_agent_audit-2.2.0.tar.gz
Algorithm Hash digest
SHA256 499edf281315737f4a7f890c70b292e11117d1f6d459fb5e5c565e877fe3e1a9
MD5 893e0992edc86cc6eb6657d8b7ca5fd4
BLAKE2b-256 930c4a52a348c922e154f7088e89b2e99ff684b1ac0831b9683fb1849923d365

See more details on using hashes here.

Provenance

The following attestation bundles were made for finserv_agent_audit-2.2.0.tar.gz:

Publisher: publish.yml on linus10x/finserv-agent-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file finserv_agent_audit-2.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for finserv_agent_audit-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bfd7d8ac1f1eba24aebb71fee7f2b7f8bdb1d4a7fb92f6746ffcc1c3812fe98
MD5 c9ff2ad2beb3f6c5d5cff92af7345053
BLAKE2b-256 e59a0e733b93e51bd2e418aa11f0a4feac9fbd2f0d9e0c31a4e40aa04a60c984

See more details on using hashes here.

Provenance

The following attestation bundles were made for finserv_agent_audit-2.2.0-py3-none-any.whl:

Publisher: publish.yml on linus10x/finserv-agent-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page