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.