Ai coding assistant governance for banks? | Moring
Banks govern coding assistants by running them through the same lifecycle as any system that touches production code: approved tools and configurations only, a permitted-use policy for what the assistant may process, review gates on generated code before it merges, secret scanning on everything it writes, and audit logs the bank retains. The assistant itself is not the exposure; the ungoverned path, where a developer installs one and pastes proprietary code into it, is.
On this page
Short answer
Banks govern coding assistants by running them through the same lifecycle as any system that touches production code: approved tools and configurations only, a permitted-use policy for what the assistant may process, review gates on generated code before it merges, secret scanning on everything it writes, and audit logs the bank retains. The assistant itself is not the exposure; the ungoverned path, where a developer installs one and pastes proprietary code into it, is.
How it works
Coding assistants sit at the intersection of two control regimes: developer productivity and the bank's obligation to know what runs in its environment. The productive framing is that an assistant is a system that writes to the codebase, and everything the bank already requires of systems that write to the codebase applies. Guidance on private deployments defines the governed pattern precisely: the models, the prompts, the documents they read, and the logs they produce stay inside infrastructure the bank controls [1]. An assistant configuration that honors that pattern can be approved; one that does not needs a compensating case.
Approval starts with the configuration, not the product. For each approved assistant, record the deployment mode, which data it may process, which repositories it may read, whether its traffic leaves the bank's perimeter, and who may use it. The bank should be able to answer the three questions that deployment guidance says matter about any tool: where client data goes, who can read it, and what happens to it inside the tool [2]. If the answer for an assistant is that code and context flow to an external service under terms nobody has read, the tool is not approved, whatever its brand.
Generated code is the second control surface. Assistants write code that reaches production, so the review gates the bank already operates on human code extend to it: peer review, static analysis, secret scanning, and testing before merge. Architecture guidance for audit-ready deployments describes the pattern of stage gates that produce auditable artifacts, such as benchmark results, bias review where relevant, sign-off documents, and risk tier classification, before a system advances [3]. The same gate logic maps onto the merge process: an assistant-generated change should carry its provenance so reviewers know what they are reviewing and how it was produced.
Secrets deserve their own sentence in the policy because assistants are paste targets. Developer context includes connection strings, keys, and credentials, and the pattern where secrets travel into prompts is a recognized exposure in banking deployments, since obligations to protect customer information follow the data wherever it goes, including into a prompt [4]. Secret scanning on everything the assistant writes, plus scanning of the prompts where the tooling allows, converts the policy into an enforcement point rather than a training slide.
Model risk treatment completes the frame. The bank's model governance, built over years under SR 11-7, expects purpose, limits, validation, and monitoring for systems that influence outcomes [1]. A coding assistant influences outcomes indirectly through the code it produces, so the treatment is proportionate: inventory the tool, define its purpose and limits, validate the approved configuration, and monitor usage for drift toward unapproved behavior. The 2026 guidance keeps the expectation alive even while placing generative systems outside its formal scope [4], and examiners will ask the standing question: can the bank explain and control what it runs [4].
Audit and evidence make the governance durable. The supervisory framework the OCC issued in 2026 lists documentation and auditability, internal audit, and reporting among its components [5], and a bank that can show its assistant inventory, its approved configurations, its merge-gate logs, and its exception handling has that documentation ready. Internal audit should test the controls as implemented, including whether unapproved assistants have appeared since the last review, because endpoint discovery is a control that decays without repetition. And where an assistant runs inside the bank's own boundary, the standard control list still applies to its server as to any system holding customer information [6].
The senior summary: approve configurations, not brands; gate generated code like any code; scan for secrets continuously; treat the assistant as a model risk inventory entry; and keep the evidence [5]. Banks that do this get the productivity without the ungoverned path. Banks that skip it are running unreviewed code generation inside the environment that writes their transfer engine, and the audit trail will show exactly that.
Frequently asked questions
How should banks govern AI coding assistants?
Run them through the same lifecycle as any system that writes to the codebase: approve specific configurations rather than products, recording deployment mode, permitted data, repository scope, and eligible roles; extend merge gates with provenance so reviewers know a change was assistant-generated [3]; scan everything the assistant writes for secrets, since protection obligations follow data into prompts [4]; enter the tool in the model risk inventory with purpose, limits, and monitoring [1]; and keep the evidence the supervisory framework expects, including documentation, auditability, and internal audit coverage [2].
What questions do we ask before approving an assistant?
The three that deployment guidance says matter most: where does data go, who can read it, and what happens to it inside the tool [2]. For a coding assistant, add the configuration specifics: does inference run inside the bank's perimeter or through an external service, which repositories may it read, are prompts or code retained by the vendor, and under whose terms. If the bank cannot answer those questions from the vendor's documentation and its own testing, the assistant is not approved. Write the answers into the permitted-use record so approval has substance.
Do we treat assistant-written code differently in review?
Yes, in provenance and intensity, not in standard. The code must meet the same bar as human code, but reviewers should know a change was assistant-generated so they can target the known failure modes: plausible-but-wrong logic, hallucinated dependencies, embedded credentials, and inconsistent error handling. Stage-gate discipline from audit-ready deployment patterns applies naturally: each advance produces auditable artifacts before the next [3]. Secret scanning runs on everything the assistant writes, since secrets traveling into prompts are a recognized banking exposure [4].
How does model risk governance apply to a coding assistant?
Proportionately, through the same skeleton. Model governance under SR 11-7 expects purpose, limits, validation, and monitoring [1], and an assistant earns a lighter version of each: an inventory entry, a written purpose and data boundary, validation of the approved configuration, and usage monitoring for drift toward unapproved behavior. The 2026 guidance places generative systems outside its formal scope yet still expects institutions to govern them under existing practices [4], and the examiner's standing question, whether the bank can explain and control what it runs, applies to assistants fully [4].