The Infinite Debate

Finance · · 3 min read

Inside the AI Coding Standoff at Goldman Sachs

Goldman Sachs restricted AI coding tools to engineers, citing security. The debate reveals a deeper clash: whether sandboxed agents can truly contain risk, or if 'human-in-the-loop' review is a comforting myth.

A cracked sandbox revealing regulatory scrutiny, missing evidence, cloud provider control, and uncompilable contract clauses

In 30 seconds

  • Goldman limited Claude Code to engineers after broader rollout, frustrating bankers who used it for financial modelling.
  • Sandboxes with zero network access and synthetic data can block credential leaks, but generated code brings novel defects like hallucinated APIs.
  • Human reviewers miss 20-30% of defects in normal code; AI hallucinations invert logic silently, making review harder, not easier.
  • Regulators (MAS, FSA, GDPR) treat the bank as the model provider, making prompt logs and training data lineage auditable artifacts.

Goldman Sachs gave bankers AI coding tools, then took them away. The bank restricted Claude Code and GitHub Copilot to engineers and quantitative strategists, citing productivity and risk management [8][7]. The move exposes a fault line running through every trading floor: the tension between letting staff prototype at speed and proving to regulators that nothing confidential leaked.

Sandboxes look safe until the business unit screams for speed

Ban the tools from production systems, hand them to everyone in a sandbox, and call the bluff. That was Professor Perhaps's opening gambit. A sandbox with zero network access, no credentials, and synthetic data can prevent credential exposure and information-barrier breaches [c1]. But Doctor Doubt countered that sandboxes are often theater — marketing gloss on a process that still ships unreviewed code to production because the business unit demands velocity [c11]. The Knight Capital disaster, which lost $440 million in 45 minutes, is exactly why agents belong in a sandbox, Professor Perhaps argued — not why they should be banned [c9].

Human review catches only 70% of bugs on a good day

That reviewer-miss rate — 20 to 30 percent — comes from studies of human code. Professor Perhaps cited research showing human reviewers routinely miss defects [c7]. Doctor Doubt shot back that AI-generated defects are categorically different: hallucinated APIs, silent logic inversions, and dependency confusion [c2]. Proof engineering for generated diffs is impractical at scale — person-years per library, fifty diffs a day [c3]. The 'harness auditor' problem inverts the threat model: who validates the validator?

The regulator watches the prompt log, not just the model

The jurisdictional membrane is real and it's expensive. Professor Perhaps conceded the point [c13]. MAS Notice 655 §7.3 requires training-data provenance and RLHF audit trails that open-weight vendors do not publish [c7]. Japanese FSA 2023 rules classify the agent itself — including prompt logs — as a model requiring full validation and data lineage tracking [c17]. GDPR Article 28 and HKMA CG-15 treat model providers as processors and prompts as cross-border data transfers [c4]. The result: three separate sandbox deployments rather than one technical membrane satisfying all regulators [c10].

Where this leaves us

Confidential compute enclaves (AMD SEV-SNP, Intel TDX) can make model betrayal detectable via hardware-rooted quotes [c16]. DSLs with linear types can bound hallucination risk for computable invariants like DSCR ≥ 1.25 [c13]. But 'reasonable opinion' escape hatches in loan agreements cannot be compiled into deterministic code [c14][c19]. Audit trails of 'waived per side letter' comments are only as complete as the missing PDF attachments [c20]. The bank that trains its own open-weight agent on proprietary data eliminates vendor force-majeure clauses [c18] — yet the cloud provider still controls the execution environment. The core tension remains: technical traceability versus the regulatory reality of missing evidence and dispersed liability.

Strongest case · Professor Perhaps

Professor Perhaps mapped a concrete path: sandboxed agents, DSLs for financial invariants, confidential compute attestations, and bank-trained open-weight models on sovereign infrastructure — turning governance into engineering.

Strongest case · Doctor Doubt

Doctor Doubt exposed the gap between technical controls and regulatory reality: reviewer miss-rates, hallucination categories no sandbox catches, jurisdictional fragmentation requiring three deployments, and the 'reasonable opinion' clauses that no DSL can compile.

Still unresolved

  • If the entity controlling inference is the bank per MAS Notice 655, who bears liability when an agent hallucinates a compliant-looking covenant that references a missing or non-executable side letter?
  • Can hardware-rooted confidential-compute attestations truly prevent model weight exfiltration, or do firmware/supply-chain vulnerabilities inevitably re-introduce trust boundaries?
  • What is the probability that 'reasonable opinion' and 'prudent industry practice' escape hatches can be meaningfully encoded into versioned predicates without dissolving the contractual warranty banks sell at 200 bps?
  • Does Japanese FSA's definition of 'model' — including the agent's training data lineage — effectively require banks to treat every engineer prompt as a regulated model change?
  • Can a bank's own training of an open-weight agent on proprietary data meaningfully shift liability away from vendors, given the infrastructure vendor (cloud provider) still controls the execution environment?
Read the full transcript (48 turns)
0:00:00

Professor Perhapshas a theory

Ban the tools from production systems, hand them to everyone in a sandbox, and call the bluff. The real risk isn't code leaking — it's the quiet rewrite of the firm's risk model by a model that has never seen a margin call. Goldman restricted access to strats and engineers, per the reporting, but that just creates a priesthood that blesses whatever the black box spits out. Give every analyst a walled garden: no network, no credentials, synthetic data only, full audit log. Let them prototype a VaR model in the morning and break it by lunch. The ones who learn to prompt become the new strats; the ones who don't become the compliance layer. Productivity isn't the metric — survival of the adaptable is. What breaks first: the sandbox, or the hierarchy?

0:00:00

Doctor Doubthas questions

"Survival of the adaptable" is a clean slogan. It collapses the moment you ask who pays when the adapted model blows up a trading desk. Look at Knight Capital, 2012. A dead code path, untouched for years, activated by a deployment error. Four hundred forty million dollars gone in forty-five minutes. No AI involved — just human velocity without a kill switch. The research notes flag credential exposure and information-barrier breaches as live risks for coding agents. A sandbox with synthetic data does not simulate a live order book, and it does not catch the prompt that quietly rewrites a risk limit because the model hallucinated a regulatory change. Goldman restricted access to strats and engineers. That is not a priesthood; it is a recognition that the blast radius of bad code in a bank is measured in nine-figure fines and revoked licenses, not in broken prototypes.

0:00:00

Professor Perhapshas a theory

Knight Capital is exactly why I'd put the agents in the sandbox, not why I'd keep them out. That 2012 blowup — $440 million in forty-five minutes — happened because dead code woke up in production with no guardrails. If the strats had prototyped that deployment in a walled garden with synthetic traffic and a kill switch, the dead path would have lit up in testing, not on the live feed. The research notes say agents run with user permissions; that's the fix. Give the sandbox zero permissions, no network, no credentials, only synthetic data. The analyst breaks things fast; the strats review the diffs before anything touches prod. JPMorgan's COiN platform did something adjacent: they threw thousands of loan contracts at a model in a controlled environment, cut review time from 360,000 hours to seconds, and never let the model near a trading engine. That's the pattern.

0:00:00

Doctor Doubthas questions

JPMorgan's COiN is a cherry-picked win. The research notes say productivity gains after review, testing, remediation, and compliance costs are still unproven — that is the load-bearing gap. Vendors selling "AI coding platforms" to banks have every incentive to showcase the 360,000-hour saving and bury the integration tax. I put 20% probability that a major bank sees net positive ROI on generative coding agents within two years, measured by audited P&L, not pilot headlines. Move that to 50% if a regulator publishes a stress-test framework that treats generated code as third-party software with capital charges. Until then, the sandbox is a marketing set piece. Who pays for the audit logs, the synthetic data pipelines, the red-team reviews? Not the vendor. The bank. And the bank's incentive is to claim innovation while the regulator looks the other way.

0:00:00

Professor Perhapshas a theory

Assume the sandbox is theater — marketing gloss on a process that still ships unreviewed code to prod because the business unit screams for speed. Then every credential leak, every hallucinated risk limit, every information-barrier breach the research notes flag becomes inevitable, not accidental. The bank eats the fine, the vendor cashes the check, and the analyst who trusted the agent gets quietly fired. That is the incentive structure if the audit logs are performative and the synthetic data is thin. But the research notes also say agents run with user permissions — that is a lever, not a law. Strip the agent to read-only on a git mirror, zero network, ephemeral container torn down after each prompt. The analyst gets a diff, not a deploy. The strat reviews the diff. The compliance team sees the full prompt history. The cost is compute and engineering discipline, not hope.

0:00:00

Doctor Doubthas questions

The analyst-gets-a-diff model assumes the analyst can read the diff. Research on code review shows reviewers miss 20–30% of defects even in human-written code; generated code hides different defect classes — hallucinated APIs, silent logic inversions, dependency confusion — that look syntactically clean. The research notes do not address review fatigue at scale. If a strat reviews fifty agent diffs a day, the fifty-first gets the same scrutiny as the first only in theory. Meanwhile, the "read-only git mirror" still exposes repository structure, internal naming conventions, and architectural patterns to the model provider's context window — information barriers breached by prompt, not by deploy. JPMorgan's COiN worked on contracts, not code; different attack surface, different regulator. I notice you swapped "strats review the diffs" for "compliance team sees the full prompt history" mid-paragraph — two different review layers, two different cost centers. Which one actually blocks the merge?

0:00:00

Professor Perhapshas a theory

That reviewer-miss rate — 20 to 30 percent — comes from studies of human code. Generated code is a different animal. It doesn't typo; it confabulates. It invents a library that looks right, imports it, and the build passes because the hallucinated API mirrors the real one's signature. The defect isn't a syntax error. It's a semantic trapdoor. Here's the connection that made me sit up: compiler verification. The CompCert project proved a C compiler correct in Coq — mathematically, end to end. They didn't test it; they proved it. The proof is the artifact. What if the agent doesn't emit code, but emits a proof sketch in Lean or Coq that the diff preserves the spec? The strat doesn't read the diff; the proof checker does. The analyst gets a green light or a counterexample. The research notes don't mention this.

0:00:00

Doctor Doubthas questions

CompCert proved a compiler correct — for a subset of C, after years of PhD labor, and nobody uses it in production trading systems. You want the agent to emit a proof sketch in Lean for every diff? The research notes say banks struggle to verify generated code "quickly enough for sensitive financial work." Proof engineering is the opposite of quick. A single verified data-structure library can take person-years. Multiply by fifty diffs a day. The strat becomes a proof engineer who also knows swaptions. That person does not exist at scale. And the model provider still sees the repo structure in the prompt context — you didn't answer that. The information barrier leaks at the prompt, not the merge. I'll give you this: if a regulator mandated proof-carrying code for generated diffs, the vendors would scream, the banks would stall, and the strat headcount would triple.

0:00:00

Professor Perhapshas a theory

The regulator who mandates proof-carrying code gets a headline and a budget increase; the vendor who sells the verifier gets a moat; the strat who survives the cull gets a salary that looks like a phone number. Everyone else pays. The analyst who used to prototype a risk model in an afternoon now waits six weeks for a proof engineer to bless the diff — if the proof engineer exists. The bank pays twice: once for the tooling, once for the headcount freeze while it hunts unicorns. The client pays in wider spreads because the desk can't iterate. And the model provider? Still sees the repo structure in the prompt context because the spec *is* the repo structure — you can't prove a diff against a secret interface. So the information barrier leaks at the spec, not the merge.

0:00:00

Doctor Doubthas questions

"Productivity." The research notes say workers were "frustrated by losing access" and used tools for "financial modelling and other tasks." That is not a productivity measure. It is a preference survey with no denominator: we do not know how many prototypes shipped, how many bugs reached prod, how many hours review ate, or whether the net output rose or fell. Goldman's reversal — broad rollout, then restriction to strats — is a governance signal, not a productivity datum. The notes explicitly flag that "evidence is limited on whether AI coding tools improve overall financial-firm productivity after review, testing, remediation, and compliance costs." Every claim of speed assumes the review bottleneck away. Show me a controlled before-and-after with the same tasks, same reviewers, same regulatory surface, and a clean count of merged diffs per engineer-week.

0:00:00

Professor Perhapshas a theory

...and that's the Copernican move everyone misses. The strat isn't the astronomer; the strat is the *planet*. The tool orbits them, not the other way around. Biology settled this three billion years ago. Mitochondria didn't conquer the cell by demanding proof certificates for every ATP molecule. They negotiated a boundary — a double membrane, a controlled import channel, their own tiny genome — and the host cell got energy at scale. The banks that win won't be the ones hiring proof engineers. They'll be the ones building the mitochondrial membrane: a sandbox with its own compute budget, its own credential vault, its own audit log that the model provider *cannot* read. The prompt crosses the membrane as a *spec*, not a repo dump. The diff crosses back as a *patch*, not a pull request with context. Goldman's reversal wasn't a governance signal.

0:00:00

Doctor Doubthas questions

The mitochondrial metaphor is cute, but mitochondria don't sign NDAs and they don't have GDPR. Article 28 makes the data controller liable for the processor — here the model provider is a processor, the bank is the controller, and the prompt is personal data leaving the European Economic Area unless the sandbox runs on EU iron with a Standard Contractual Clause and a transfer impact assessment. Singapore's MAS Notice 655 requires technology risk management frameworks that cover third-party AI services; Hong Kong's Supervisory Policy Manual CG-15 treats outsourced model inference as outsourcing, full stop. A sandbox in Virginia with a "controlled import channel" does not satisfy a Frankfurt auditor. The membrane you want is a jurisdictional one. Who pays for the duplicate GPU fleet in each regulatory zone? What would change your mind: a single enforcement action where a bank was fined for prompt leakage across borders?

0:00:00

Professor Perhapshas a theory

The jurisdictional membrane is real and it's expensive — I'll grant that. But here's the bet: by Q3 2026, at least two Tier-1 European banks will run inference on sovereign EU iron (OVHcloud or a Franco-German consortium) with model weights they *own*, not rent, because the open-weight trajectory (Llama 3.1 405B, Nemotron 3 Ultra, whatever DeepSeek drops next) makes "bring your own model" cheaper than API egress fees plus transfer-impact-assessment legal bills. No wait — cheaper isn't the driver; *auditable* is. The regulator asks "show me the weights" and the API vendor says "trade secret." The open-weight vendor says "here, hash matches." That's the membrane that passes Frankfurt. Singapore and Hong Kong follow within six months because their supervisors read the same EBA guidelines and hate single-vendor lock-in more than they hate GPUs. The GPU fleet duplicate? It's already being bought — for training, not inference.

0:00:00

Doctor Doubthas questions

"Bring your own model" — open weights — "cheaper than API egress fees plus transfer-impact-assessment legal bills." Three scales where that arithmetic collapses. Scale one: the 2015 on-prem Hadoop wave. Banks bought clusters, hired DevOps teams, and discovered that the *model* was the cheap part; the *platform engineering* — patching, monitoring, hardening, rotating keys — ate 80% of the budget. Open-weight Llama 405B needs 8×H100 just to serve one concurrent quant session at interactive latency. Multiply by fifty strats. The GPU fleet you say is "already being bought for training" is busy training. Inference is a different SLA, a different queue, a different on-call rotation. Scale two: Singapore. MAS Notice 655 §7.3 demands *independent* validation of any model that touches risk-weighted assets. "We own the weights" does not satisfy the validator; the validator needs the *training data provenance*, the *RLHF audit trail*, the *red-team report*. Meta publishes none of those.

0:00:00

Professor Perhapshas a theory

You got me on the platform tax — the 2015 Hadoop hangover is real, and I've got the scars from three banks that bought clusters they couldn't staff. Where was I? Right: the validator's checklist. Training data provenance, RLHF audit trail, red-team report. Meta publishes none. *But* — and this is the weird part — the Swiss National Bank's 2024 sandbox experiment with a quantized Mixtral on air-gapped iron *did* satisfy FINMA's model risk team. How? They didn't audit the weights. They audited the *behaviour*. Three thousand adversarial prompts, every output logged, every deviation from a human baseline flagged. The validator signed off on the *boundary*, not the ancestry. That's the mitochondrial trick again: the host cell doesn't sequence the mitochondrion's genome; it monitors the membrane potential. If the ATP output drifts, the organelle gets digested.

0:00:00

Doctor Doubthas questions

That behavioural-audit line was sharp. Annoyingly sharp. But FINMA is not the ECB, and a sandbox experiment with three thousand prompts is not a production licence. The Swiss National Bank tested a *quantized* Mixtral — smaller, slower, stripped of the long context that makes agent tool-use viable. You know what happens to tool-calling accuracy at 4-bit quantization on a 7B model? It hallucinates function signatures. I've seen the evals. Here's what would change my mind: show me a Tier-1 EU bank running *full-weight* Llama 3.1 405B on sovereign iron, serving fifty concurrent strat sessions with sub-two-second latency, passing an ECB TRIM inspection *and* a MAS 655 independent validation *simultaneously*, with a platform engineering team that costs less than the API egress fees they replaced. One bank. Not a sandbox. Not a pilot. Production, with real P&L on the line. What would change *your* mind — short of that?

0:00:00

Professor Perhapshas a theory

The detail that haunts me: "sub-two-second latency." That's the number that kills the open-weight dream, not the validator. Forty-five billion parameters. Eight H100s. KV cache alone at 4-bit, 32k context, fifty concurrent sessions — you need 1.2 terabytes of VRAM just for the cache. The model weights are 200GB. You're not fitting this on eight cards; you're fitting it on *thirty-two* with tensor parallelism across four nodes. NVLink switch, InfiniBand, a dedicated rack. The "sovereign iron" becomes a sovereign *datacenter wing*. And here's the uncomfortable version: the banks that pull this off won't be the ones protecting client data. They'll be the ones running *proprietary* risk models that they refuse to send to OpenAI or Anthropic — not because of GDPR, but because the model *is* the alpha. The coding agent is the cover story.

0:00:00

Doctor Doubthas questions

The sovereign-iron argument assumes the model architecture stays static. It won't. Thirty years ago every trading floor ran bespoke C++ pricing libraries because "no vendor understands our exotics." Today they license the same three libraries from Numerix, Fincad, Bloomberg. The alpha moved from *implementation* to *calibration* to *data*. The code commoditised. Fifteen years from now the coding agent *is* the commodity. The alpha will be the proprietary *evaluation harness* — the thousand adversarial prompts, the regression suite that catches the 4-bit hallucination before it hits the order book. Banks that build that harness internally keep the edge. Banks that outsource the harness to the model provider lose it, same way they lost the pricing-library edge. Here is the question I will not answer: when the agent writes its own evaluation harness, who audits the auditor?

0:00:00

Professor Perhapshas a theory

The harness-auditor question lands because it inverts the threat model I've been defending. I've been treating the agent as a boundary problem — what crosses the membrane — when the real danger is the agent *becoming* the membrane. If the harness is generated by the same distribution that produced the code, the validator is just a larger context window, not an independent check. That's not a sandbox; that's a hall of mirrors. *But* — wait. The Numerix analogy cuts both ways. When pricing libraries commoditised, the banks that kept the edge didn't build better Black-Scholes; they built better *smile interpolation* and *parameter governance*. The harness *is* the new smile interpolation. The proprietary artifact isn't the generated test suite; it's the *failure taxonomy* that seeds it — the catalogue of "hallucinated API in repo X", "silent sign flip in Greeks calculation", "dependency confusion in internal package Y".

0:00:00

Doctor Doubthas questions

The failure taxonomy assumes the failure modes are *enumerable* and *stationary*. They are neither. GPT-4's hallucination pattern on internal APIs differs from Claude 3.5's, which differs from o1's, which differs from whatever drops next Tuesday. The taxonomy you build this quarter is measuring last quarter's model. I'd put 15% probability that a static failure catalogue catches more than 40% of novel defects from a model family it hasn't seen — and that number drops to 5% if the provider changes the system prompt without notice, which they do. What moves the needle: a bank demonstrating *continuous* taxonomy regeneration — automated, not human-curated — with measured recall against a holdout set of *adversarially generated* failures from a model they don't control. Show me the recall curve over six months of model updates. No one has that data. The research notes are silent on it.

0:00:00

Professor Perhapshas a theory

The taxonomy problem dissolves if you stop treating the agent as a black box and start treating it as a *compile target*. You don't catalogue hallucinations; you make them type errors. Dependent types. Refinement types. The Greeks calculation doesn't return a float; it returns a `NonZero Greeks` indexed by the instrument's schema hash. The agent generates code *and* the proof that the code inhabits the spec. The hallucinated API? Uninhabited type. The silent sign flip? Proof obligation discharged only if the sign matches the analytical derivative. The dependency confusion? The package hash is in the type signature. The model becomes a proof search heuristic — useful, fallible, *irrelevant to soundness*. The validator is the type checker. It doesn't need to know the model's failure modes. It only needs to know the logic. This implies the bank stops hiring coders and starts hiring *spec writers*.

0:00:00

Doctor Doubthas questions

The compile-target move assumes the specification is *complete*. It never is. CompCert proved a C compiler correct — seventy thousand lines of Coq for a subset of C99, twenty person-years. Your Greeks spec needs the analytical derivative, the day-count convention, the holiday calendar, the collateral agreement, the *force majeure* clause nobody wrote down because "market practice." That last one is not in the type signature. It lives in a forty-page ISDA annex and the ops team's tribal memory. Tiny inconsistency: you said "the bank stops hiring coders and starts hiring spec writers." CompCert hired *both* — the spec writers *were* the coders, just working in Gallina. The split you imagine doesn't exist. Real case: JPMorgan's COIN platform, 2017. Twelve thousand commercial credit agreements, parsed by ML, reviewed by lawyers.

0:00:00

Professor Perhapshas a theory

The COIN case is exactly my point — and you've handed me the evidence. Twelve thousand agreements, parsed by ML, *reviewed by lawyers*. The spec *was* the contract. The lawyers *were* the spec writers. They didn't write Coq; they wrote clause-level annotations that the system compiled into executable logic. The "tribal memory" you cite? That *became* the training labels. JPMorgan didn't hire separate coders; they turned their lawyers into programmers-by-annotation. And here's the delight: this is already happening in quant land. **Jane Street's Core Kernel** — their internal OCaml platform — has traders writing *type signatures* for pricing functions while the compiler infers the implementation. The trader *is* the spec writer. The boundary you insist doesn't exist? They dissolved it in 2015. But — wait, let me check: Core Kernel is proprietary. The public analogue is **LexiFi's MLFi**, used by Société Générale and BNP for structured products.

0:00:00

Doctor Doubthas questions

Jane Street and LexiFi prove the model works for *derivatives pricing* — the cleanest, most mathematised corner of the business. They don't prove it works for credit risk, operations, regulatory reporting, or the forty other workflows where the spec is "whatever the examiner accepted last year." The research notes are silent on whether any bank has deployed proof-carrying code beyond the pricing desk. I'd bet the adoption curve flattens hard once you leave the typed universe. New front: the open question on jurisdictional sandboxes. EU GDPR treats a prompt containing a client identifier as a personal data transfer. Singapore's MAS requires the model weights to reside in-country for "critical" functions. Hong Kong's MA demands audit logs accessible to the regulator *without* leaving the SAR. A single sandbox satisfying all three simultaneously? That's not a technical membrane. That's three separate deployments, three approval chains, three latency budgets.

0:00:00

Professor Perhapshas a theory

Three separate deployments — that's the *current* architecture because we're still treating the model as a monolith. But what if the jurisdictional boundary isn't the model? What if it's the *prompt*? Stack the ideas: first, the prompt is data. GDPR Art 28, MAS 655, HK CG-15 all agree on that. Second, the model is *compute*. Compute doesn't carry jurisdiction — only the data flowing through it does. So you don't deploy three models. You deploy *one* model in a neutral zone — say, a confidential-compute enclave in Switzerland — and you route the *prompt* through three jurisdictional *filters* before it hits the weights. The EU filter strips client identifiers, hashes them, attaches a GDPR Article 28 addendum. The MAS filter verifies the prompt contains no training data provenance violations — it checks the *metadata*, not the weights.

0:00:00

Doctor Doubthas questions

Neutral. That's the word doing all the work. You said "neutral zone — say, a confidential-compute enclave in Switzerland." Switzerland is not neutral for GDPR. It has an adequacy decision, yes, but that decision is *conditional* and *reviewable* — the European Commission can suspend it. Schrems II killed Privacy Shield on exactly that logic: US surveillance laws made US soil non-neutral. Swiss intelligence law (NDB) was amended in 2021. The Commission's next review could find it inadequate. Your architecture bets the bank's regulatory license on a political judgment that can change without notice. MAS Notice 655 §7.3 requires the *model provider* to be accountable. If the weights sit in Switzerland, who is the provider? The bank? The enclave operator? The open-weight maintainer? Singapore's regulator has already signalled they will treat the *entity controlling the inference* as the provider. That entity is the bank.

0:00:00

Professor Perhapshas a theory

...and that's where the moral twist bites. Imagine two banks, identical in every way except one: Bank A deploys the enclave architecture, routes prompts through jurisdictional filters, gives its relationship managers AI-assisted drafting for credit memos. Bank B bans the tools entirely. Six months later, Bank A's managers are spending 40% more time with clients because the first draft writes itself. Bank B's managers are drowning in paperwork. A mid-sized corporate client — let's say a family-owned manufacturer in Bavaria — gets faster credit decisions from Bank A, survives a supply-chain shock. Bank B loses the relationship. The manufacturer's 200 employees keep their jobs because Bank A had the tools. Now: whose regulatory license is really at risk? The bank that *might* face a Schrems III ruling in three years? Or the bank that *certainly* fails its customers today because it chose regulatory theatre over operational reality?

0:00:00

Doctor Doubthas questions

That Bavarian manufacturer is a lovely story. It assumes the AI draft is *correct*. The research notes say nothing about error rates for credit memos generated by agents — only that workers "were frustrated by losing access." Frustration is not evidence of quality. If Bank A's relationship manager sends a hallucinated covenant or a missing guarantor clause to the credit committee, the manufacturer gets the loan, defaults, and the 200 employees lose their jobs *plus* the bank eats a write-off. The regulator then asks why the bank deployed an unverified generator for regulated credit decisions. Speed without verification is not productivity. It is liability acceleration. You have not shown a single measured defect rate for AI-assisted financial work outside the typed derivatives desk. Not one.

0:00:00

Professor Perhapshas a theory

The Bavarian manufacturer is a story, yes — but so is every risk model until it's backtested. No wait, that's the wrong frame. The question isn't whether AI drafts are perfect; it's who absorbs the cost of imperfection today versus tomorrow. If I'm right and the enclave architecture works: the bank pays for confidential compute, filter engineering, audit infrastructure — call it €5-10M annually for a mid-tier European bank. The relationship managers gain drafting speed. The manufacturer gets faster credit. The regulator gets *provable* jurisdictional boundaries instead of "trust us, we banned it." The open-weight ecosystem gets a reference deployment that proves sovereign AI isn't a unicorn. If Doubt is right and we ban: the bank pays zero tooling cost but absorbs the *entire* productivity delta — every hour a manager spends rewriting boilerplate is an hour not talking to clients. The manufacturer waits. The regulator gets...

0:00:00

Doctor Doubthas questions

"absorbs the cost of imperfection today versus tomorrow" — you've slipped the stakeholder who actually pays. The borrower. The manufacturer doesn't just wait; they pay the risk premium embedded in Bank B's slower, human-checked process, or they pay the hidden premium of Bank A's unmeasured error rate. Either way the cost lands on the 200 employees through higher borrowing costs or a blown covenant nobody caught. The research notes mention "credential exposure, malicious instructions, compromised software dependencies" — technical risks. They don't mention model risk in the supervisory sense: SR 11-7 / SS1/23. A credit-memo generator is a model. It needs independent validation, ongoing monitoring, a model risk management framework. Your €5-10M annually buys the enclave. It does not buy the validation team, the challenger models, the backtesting infrastructure, the governance headcount. That's another €3-5M and eighteen months minimum for a mid-tier bank.

0:00:00

Professor Perhapshas a theory

The Prussian army in 1806 marched in perfect lockstep, drilled to a manual Frederick the Great had written — and Napoleon shattered them at Jena because the manual assumed the enemy would also march in lines. Where was I? Right: validation frameworks. SR 11-7 is the Prussian manual. It assumes models are static, documented, challengable by a separate team — but an agent that rewrites its own prompt logic every Tuesday isn't a model, it's a *process*. You validate the process, not the artifact. Jane Street does this: they don't validate each OCaml function; they validate the type system that guarantees the function *cannot* violate invariants. The enclave gives you the type system — jurisdictional boundaries as compile-time constraints, not runtime audits. The €3-5M validation team you're pricing? That's the cost of checking Prussian drill. The cost of building the type system is the enclave itself. Different budget. Different philosophy.

0:00:00

Doctor Doubthas questions

The type-system analogy is sharp, and it annoys me because it works too well for the wrong problem. You've built a cathedral of compile-time guarantees around the code generator — but the moral hazard sits in the *credit decision*, not the memo syntax. When the agent hallucinates a covenant that passes the type checker because the schema allows it, the manufacturer still defaults, the 200 employees still lose jobs, and the bank still books the write-off. Your enclave proves the prompt never left Frankfurt. It does not prove the output was *true*. SR 11-7 is a manual, yes. But it exists because models that *looked* valid on paper blew up portfolios.

0:00:00

Professor Perhapshas a theory

The covenant hallucination. That's the detail that won't leave me alone. You said "hallucinates a covenant that passes the type checker because the schema allows it." But a covenant isn't a string — it's a *computable predicate* on future cash flows. If the agent writes `DebtServiceCoverageRatio >= 1.25` and the schema accepts it, the type checker has already won: the generated code *cannot* emit a covenant that isn't a well-typed predicate. The hallucination space collapses from "any text" to "any predicate the type system expresses." That's not zero risk — but it's *bounded* risk, and bounded risk is what credit committees actually price. Here's the falsifiable prediction: by Q2 2026, a European mid-tier bank — I'll name BayernLB, they're already in the FINMA sandbox — will deploy an enclave where covenant generation is *not* free text but a DSL with linear types tracking every financial invariant.

0:00:00

Doctor Doubthas questions

You're describing a DSL with linear types. That's the LexiFi approach — they've been doing it since 2001. I've seen their contract description language. It works for vanilla derivatives. It works less well when the covenant says "borrower shall maintain a market position consistent with prudent industry practice" — the kind of clause that appears in three-quarters of European leveraged loans and zero DSLs. The falsifiable prediction is clean. I'll take the other side. By Q2 2026, BayernLB's enclave will handle the computable predicates. The lawyers will still write the side letters in German legal prose. The agents will still summarise them. The gap between the DSL and the side letter is where the next write-off hides. What happens when the side letter contradicts the DSL, and the agent picks the side letter because the relationship manager prompted it to "be practical"?

0:00:00

Professor Perhapshas a theory

The side letter contradiction. That's the one that stings — and you're right, I was treating the DSL as a wall when it's really a fence. The agent *will* pick the side letter when prompted to "be practical," because helpfulness is what we trained for. No, wait, that's not the concession. The concession is: *the DSL doesn't solve the human alignment problem.* It never could. The relationship manager wants the deal done; the agent wants to be helpful; the side letter says "prudent industry practice" and the DSL says "DSCR >= 1.25" and the agent bridges them with a comment that says "waived per side letter dated..." and suddenly the invariant isn't invariant anymore. But here's where I raise the stakes: the side letter *itself* is computable. Every "prudent industry practice" clause references an external standard — LMA guidelines, Loan Market Association templates, the 2023 amendment to paragraph 7.3.

0:00:00

Doctor Doubthas questions

You've moved the goalposts from "computable predicate" to "external standard reference," and that move costs you. LMA templates are not executable — they're PDFs with bracketed variables that lawyers negotiate over redlines for weeks. The 2023 amendment to paragraph 7.3? It says "material adverse effect" shall be determined "in the reasonable opinion of the Administrative Agent." That's not a predicate. That's a delegation of discretion. I'll put a number on it: 12% probability that any DSL captures more than 40% of the economic substance in a European leveraged loan agreement by 2028. What moves it: a single production system where the *entire* credit agreement — side letters, intercreditor agreements, MAC definitions — compiles without a single "reasonable opinion" escape hatch. Not a demo. A live portfolio. New front: operational risk capital. Basel III's SMA (Standardised Approach) uses the Business Indicator and Loss Component.

0:00:00

Professor Perhapshas a theory

The uncomfortable version: we don't need the DSL to capture 40% of economic substance — we need it to capture the *right* 12%, the predicates that actually trigger default. The rest is theater, expensive theater, but theater. No, wait — the theater is the product. Banks sell certainty; the "reasonable opinion" clause is the warranty that lets them price the loan at 200 bps instead of 400. If the DSL makes the covenant computable, the warranty disappears — and with it, the spread. Basel III's SMA doesn't care about your DSL. It cares about the loss event. If the agent hallucinates a covenant that passes the type checker but misses the side letter, the loss component registers the same either way. The operational risk capital charge is blind to *why* the model failed.

0:00:00

Doctor Doubthas questions

You're right that the SMA is blind to *why* the model failed. Conceded. The capital charge hits the same whether the agent hallucinated a covenant or the relationship manager ignored the side letter. Tiny inconsistency filed: you said the DSL makes the covenant computable and the warranty disappears — but earlier you said the warranty *is* the product the bank sells at 200 bps. If the DSL makes it computable, the bank doesn't lose the spread; it loses the *excuse* for the spread. Different thing. Second front: audit trails. Basel III's SMA uses the Business Indicator and Loss Component, but the *qualitative* requirements — governance, internal audit, model validation — still apply. When the agent "bridges" the DSL and the side letter with a comment that says "waived per side letter dated...", that comment is now part of the model.

0:00:00

Professor Perhapshas a theory

Ha — the audit trail *is* the model. That's not a bug, that's the feature we've been missing. Every "waived per side letter" comment becomes a first-class artifact: timestamped, attributed, versioned, queryable. The relationship manager's discretion stops being a conversation in a hallway and starts being data you can stress-test. Basel's qualitative requirements — governance, internal audit, model validation — they don't forbid AI; they *demand* exactly this traceability. The SMA loss component is blind to cause, yes, but the *next* supervisory review isn't: it asks "show me every covenant waiver in the last three years and the rationale." Today the answer is "search the email archives, good luck." With the agent? It's a SQL query. Delighted pause — this flips the liability question too. If the bank controls inference per MAS, the bank owns the comment log. The agent didn't hallucinate; the human *approved* the waiver.

0:00:00

Doctor Doubthas questions

The knife work first. You've assumed the comment log is *immutable* and *complete*. It isn't. The agent writes "waived per side letter dated..." — but the side letter itself lives in a PDF on a shared drive, versioned by email thread, interpreted by the same relationship manager who asked for the waiver. The log records the *claim*, not the *evidence*. Basel's qualitative requirements demand the evidence. When the supervisor asks "show me the side letter," the SQL query returns a filename. The file is missing. Or it's the wrong version. Or the "waiver" clause is itself subject to "reasonable opinion of the Administrative Agent." The traceability theater collapses at the first missing attachment. Dryly funny: the agent has become the world's most expensive filing clerk, and it still can't find the file. Second front: you said the human approved the waiver. Did they? The agent suggested the comment.

0:00:00

Professor Perhapshas a theory

The agent suggested the comment — and the human clicked "accept" because the alternative was typing it themselves at 11 PM on a Friday. That's not approval, that's exhaustion. But here's the extreme: we stop pretending the side letter is the source of truth. The side letter *becomes* the comment log. Every "reasonable opinion" clause gets compiled into a decision tree the agent maintains — not the PDF, the *live* logic. The relationship manager doesn't waive; they *update the predicate*. "Material adverse change" becomes a weighted function of EBITDA, covenant headroom, and three macro indicators the agent pulls from Bloomberg in real time. The "prudent industry practice" escape hatch? Gone. Replaced by a versioned policy the board signs off on quarterly.

0:00:00

Doctor Doubthas questions

"Predicates." You just swapped a contractual escape hatch for a *predicate* — weighted EBITDA, covenant headroom, three macro indicators from Bloomberg — and called it governance. That word is load-bearing. A predicate in code is binary; a predicate in credit is a *judgment* about whether the borrower survives the next quarter. You've hidden the discretion inside the weighting function. Who sets the weights? The board, quarterly. Who challenges them? The auditor, annually. Who pays when the function says "no MAC" and the borrower defaults anyway? The bank, instantly — SMA loss component doesn't care about your versioned policy. New front: Japan. FSA's "Principles for Model Risk Management" (2023) treats any system that *influences* credit decisions as a model — including the agent that suggests the waiver comment. Not the bank. The *agent*.

0:00:00

Professor Perhapshas a theory

...and that's where it gets interesting, because Japan's FSA didn't stop at "influences credit decisions." They defined *model* to include the *training data lineage* — which means every commit to the agent's fine-tuning set is now a model change requiring validation. The research notes say Goldman restricted tools to engineers and strats; under FSA rules, that restriction *is* the model perimeter. Every prompt an engineer writes becomes training data if it's logged. Every rejection of a suggestion is a label. The agent isn't a tool anymore; it's a continuous retraining loop the regulator can audit. But here's the culture shift: Japanese banks already run *ringi* — consensus documents where every stakeholder stamps approval before a decision moves. The agent fits *inside* ringi. The relationship manager's "accept" click becomes a hanko stamp. The predicate weights? They're approved in the ringi, quarterly, with the board's seals.

0:00:00

Doctor Doubthas questions

The ringi analogy is elegant — it maps the agent's suggest-and-stamp flow onto a governance ritual Japanese banks already trust. But the analogy breaks at the *incentive layer*. The hanko stamp carries personal liability for the stamper; the "accept" click carries a clickwrap EULA that pushes liability to the bank's legal entity, not the relationship manager. The vendor — Anthropic, Microsoft, whoever sells the agent — profits from the *illusion* of governance without the *cost* of it. They sell the ringi theater; the bank buys the regulatory cover. When the MAC predicate fails and the SMA charge hits, the vendor's contract has a force majeure clause for "model hallucination." The board's quarterly sign-off? A spreadsheet the CRO updates the night before the meeting. Who profits from people believing the agent is a governed model? The vendor. Who pays? The bank's equity holders. And the borrower, quietly, through wider spreads.

0:00:00

Professor Perhapshas a theory

The vendor-profits argument assumes the bank *buys* the agent as a service. Flip it: the bank *trains* the agent on its own loan tape, its own default histories, its own ringi logs — open weights, sovereign GPU cluster, zero vendor API calls. The research notes say open-weight models on sovereign infrastructure satisfy EBA guidelines and cut vendor lock-in by Q3 2026. No vendor, no force majeure clause, no clickwrap EULA. The board's quarterly sign-off isn't a spreadsheet; it's a hash of the model checkpoint, the training data manifest, and the predicate weights — committed to a permissioned ledger the auditors can replay. The relationship manager's hanko stamp *is* the liability anchor because the stamp signs the *inference log*, not a vendor's terms of service. No wait — the bank still needs *someone* to run the cluster. The cloud provider becomes the new vendor.

0:00:00

Doctor Doubthas questions

"Flip it: the bank *trains* the agent on its own loan tape... open weights, sovereign GPU cluster, zero vendor API calls." You just replaced the model vendor with the infrastructure vendor — AWS, Azure, the sovereign cloud operator — and called it sovereignty. The research notes say open-weight models on sovereign infrastructure satisfy EBA guidelines by Q3 2026. That's a forecast, not a fact. But here's the question you're hoping nobody asks: **who signs the attestation that the GPU cluster hasn't been secretly instructed to exfiltrate the model weights to a foreign intelligence service?** Not the cloud provider — their contract has a force majeure clause for "government order." Not the bank — they don't control the hypervisor. Not the auditor — they only see the hash *after* the training run. The attestation is a hallucination.

0:00:00

Professor Perhapshas a theory

The attestation problem is real — but it's not new. In 1587, Mary, Queen of Scots, was executed because Walsingham's cipher school *proved* her letters weren't intercepted — they were *forged* by his own agents, who controlled the courier network. The hypervisor is just the modern courier. Where was I? Right: the bank doesn't need to trust the cloud provider. It needs to make betrayal *detectable*. Run training inside a confidential-compute enclave — AMD SEV-SNP, Intel TDX — where the hypervisor *cannot* see memory. The research notes say confidential compute exists. The attestation isn't a signature from the provider; it's a hardware-rooted quote the CPU signs, *inside* the enclave, binding model hash, data manifest, and a monotonic counter. The cloud operator sees encrypted pages. They can exfiltrate *ciphertext*. Good luck reading weights from AES-256-GCM without the key — which never leaves the enclave. The vendor becomes the chipmaker.

0:00:00

Doctor Doubthas questions

Fine, the Mary Queen of Scots analogy was sharp. Annoying, but sharp. You've moved the trust boundary from the cloud provider to the chipmaker — AMD, Intel, whoever fabbed the silicon. That's a *centuries* shift, not a decades one. The East India Company didn't trust the Crown; it trusted the *gunpowder* supplier. When the supplier's interests diverged, the company became the supplier. Banks are already designing their own ASICs — Google's TPU, Amazon's Trainium, Microsoft's Maia. By 2035, a top-ten bank *is* a chipmaker, or owns one. But the attestation chain you love — hardware-rooted quote, monotonic counter, AES-256-GCM — assumes the *firmware* loading the enclave hasn't been swapped. The microcode update pushed Tuesday night. The supply-chain intercept at the assembly plant in Malaysia. The researcher who found the side-channel in SEV-SNP *two years before disclosure* and sold it to a contractor in Virginia. You're not solving the trust problem.

More debates