Technical Guide | Financial Services

AI Coding Assistant Code Provenance for Banks: Evidence Beyond Model Risk Management

For an AI coding assistant, code provenance is a durable record of where AI-generated code came from, what licence and security context applied, and what the assistant was permitted to do. As of October 2026, Federal Reserve commentary indicates model risk management guidance no longer covers generative or agentic AI, so banks should build this evidence on secure-development and AI risk frameworks. Policy enforced in the execution path (allow, redact, block, escalate for human approval) produces that evidence as a by-product of each decision, rather than reconstructing it from logs later.

Where policy can be enforced in the execution path

  1. 1

    Prompt

    Redact secrets and sensitive data before they leave the bank's boundary. Evidence: what was detected, the redaction applied and the policy version.

  2. 2

    Context ingestion

    Treat issues, PR comments and READMEs as untrusted input. Evidence: which context entered the interaction and which policy governed it.

  3. 3

    Tool call

    Allow, block or escalate file, database and API actions requested through MCP servers. Evidence: the call, the decision and any human approver.

  4. 4

    Code output

    Record provenance attributes and block output that breaches policy, such as an unapproved dependency. Evidence: the attributes, the decision and the rule applied.

Criteria for testing your current controls and any runtime capability

  • Coverage: the control acts at prompt, context, tool call and code output, and each point produces its own record.
  • Provenance attributes: each AI-generated change carries origin, licence context, security and vulnerability context, and toolchain versions, with data limitations stated.
  • Decision evidence: every allow, redaction, block and escalation records the policy version applied, and human approvals are tracked with their outcomes.
  • Untrusted input handling: repository content, PR comments and MCP-connected tools are treated as untrusted, and the assistant's permitted access and changes are defined.
  • Durability and custody: evidence can be exported in a tamper-evident form, with configurable retention and data residency, and stays under the bank's control.
  • Deployment and scope: the capability can run self-managed in the bank's cloud, and the bank's position on regulatory scope is documented and versioned against framework updates.

What changed: model risk management is the wrong default frame

Many bank programmes assume that examiners will assess AI code generation under model risk management. That assumption needs revisiting. The OCC issued revised model risk management guidance on April 17, 2026 (OCC Bulletin 2026-13). On May 1, 2026, a Federal Reserve Governor said that the Fed, together with the OCC and FDIC, recently amended its model risk management guidance to clarify that it does not apply to generative or agentic AI, and that supervisors had expanded the earlier guidance beyond its original purpose. The same speech said supervision should help banks implement AI tools safely, effectively and efficiently. This position is current as of October 2026.

The practical consequence is that a coding assistant is unlikely to be examined as a model that needs validation. That does not remove the need for evidence. The underlying principles in the guidance still describe sound practice: governance with clear policies, roles and responsibilities, controls proportionate to the bank's risk profile and use, and documentation that tracks recommendations, responses and exceptions. The guidance also notes that banks may not receive underlying code, data or methodology from vendors. For a third-party coding assistant, that means the bank has to generate its own compensating evidence.

Risk leaders should document the bank's position on scope and map controls to frameworks that clearly bear on the work: NIST AI 600-1 for generative AI, NIST SP 800-218A for secure development with generative AI, and the OWASP guidance on secure coding with AI. These are voluntary frameworks, not binding bank rules. NIST AI RMF 1.0 is being revised, so mappings should be versioned and reviewed when the new version is published.

What code provenance means for an AI coding assistant

NIST AI 600-1 treats provenance mainly in terms of training data and AI-generated content, and acknowledges that provenance data has limitations. SP 800-218A adds the idea of capturing compiler, interpreter and build tool versions. Neither defines lineage for each suggestion a coding assistant makes, so a working definition is needed. In this guide, code provenance is a record, attached to each AI-assisted change, of its origin, the licence and security context that applied when it was generated, and the permissions under which the assistant acted.

In practice that record should capture whether the code was AI-generated, the prompt and context that shaped it, the dependencies the assistant suggested and where they came from, the licence context of that origin, and the security and vulnerability context at generation time. It should also capture the build toolchain versions and a plain statement of what the record cannot establish.

Two details from OWASP show why those attributes matter. Assistants often suggest package names close to real ones but slightly different, so attributes such as very low download counts, creation within the last 30 days or a single maintainer with no other packages are useful origin signals. Models are also trained on historical code and may not know of vulnerabilities published after their training cutoff, so security context recorded at generation time can be incomplete. A defensible record states that limitation rather than implying certainty.

Provenance answers where code came from. It does not show that anything was prevented. That is the control problem, and it needs a separate answer.

The control problem: enforced at runtime, not reviewed after the fact

Reviewing assistant activity after the fact depends on unstructured logs that were not designed as evidence. They rarely show which policy applied at the moment of an action, who approved an exception, or what was stopped. Enforcement in the execution path changes this because the decision and its record are produced together. An allow, a redaction, a block and an escalation each leave a structured entry tied to the interaction.

Runtime controls should complement pipeline gates, not replace them. OWASP recommends failing CI/CD on known dependency vulnerabilities whether code is human-written or AI-generated, and advises against disabling dependency auditing for AI-generated code. Results of those checks belong in the same evidence trail.

Trussed addresses both problems for coding assistants. It enforces policy in the execution path across models, agents, tools, MCP servers and coding assistants (allow, redact, block, rate limit, escalate for human approval), scoped to individual interactions and tool calls. Its code provenance covers the origin, licence and security context of code. The audit-ready evidence generated by enforcement is mapped to frameworks including NYDFS and NIST. It deploys self-managed in the customer cloud, with configurable retention and data residency. Trussed's deepest experience is in insurance, a regulated financial sector, and it has run 18+ months in continuous production in a regulated enterprise.

The examiner's questions and the evidence that answers them

Where did this code originate?

AI-generated status, prompt and context, suggested dependencies and their origin.

What licence and security context applied?

Licence context and vulnerability context recorded at generation time, with stated limits.

What was the assistant allowed to do?

The policy version applied and the allow, redact, block or escalate decision for each action.

What proves it?

Durable evidence produced by enforcement, retained under the bank's own control.

Check your assistant controls against the examiner's questions

Walk through how enforcement in the execution path of coding assistants produces provenance and audit-ready evidence.

Request a Demo