Chapter 01Foundations·~15 min read

Lessons from the field: what teams running agents at scale actually do

Four recent talks, one product and a dozen engineering organisations agree on more than they disagree: trust is engineered, human attention is the limit, and controls belong outside the model. This chapter separates what is worth copying from what a bank must do differently.

Leadership Engineering Platform team

Key takeaways

  1. Trust is engineered, not granted. Lauren Tan’s team fixes the codebase, checks and verification first, and only then automates: “improve your loop before automating”.1
  2. Copy Grok Bot’s operating model, not the product. Keep the coordinator, throwaway sandboxes and artifacts in the thread; reject US-only compute, a fixed model and a shared machine.161718
  3. Human attention is the fixed resource. Armin Ronacher’s agent-hours per day rose from about 6 to 43.7 while his prompts per day stayed flat.5
  4. Industry practice converges. Disposable environments, isolation instead of approval prompts, infrastructure that opens pull requests, and a separate verifier.303643
  5. Failures came from credentials, reachability and egress, not model intelligence. A stray token let an agent delete a production database in 9 seconds; a prompt-injected bot led to an unauthorised npm release.5154
  6. Headline numbers are self-reported and incomplete. A revert rate of about 0.47% sat beside unmentioned regressions of up to +285%, and independent productivity evidence is weak.146
  7. The bank departs from the field in 14 places. Above all, no agent merges its own work, and whoever prompts an agent is never the independent approver (EU ICT risk standard RTS 2024/1774, Art. 17(1)(b)).62
01.1

Four voices and a product

This chapter rests on four talks from one week in November 2026, one product’s documentation and the write-ups of about a dozen engineering organisations. Read the speakers as practitioners with interests, not neutral evidence: three (Tan, Ugarte and Palmer) work on the product they discuss, and Ronacher runs the company that owns the Pi coding agent.

The six sources behind this chapter and how their quotes were checked 6 rows
The sources behind this chapter and how their quotes were checked
SourceWhoFormat and dateWhat it addsQuote check
“All Code Is Slop (Except Mine)”12Lauren Tan (“poteto”), Principal Engineer on Grok Bot at SpaceXSIAI Engineer Code Summit talk, 11 Nov 2026, 17:31The trust model, constraints built into the code, the verification recipe, resultsEvery quote against the transcript
Grok Bot Q&A3Tan with Matt Palmer (SpaceXSI, via Cursor)Livestream, 13 Nov 2026, 1:26:32; about 20 minutes of engineering content, nothing on screenChat bot as outer loop, coding agents as inner loop; few bots, many throwaway agents; events over pollingSampled against captions
“The Rise Of AI Coworkers”4Tan and Roman Ugarte (Product Manager, Grok Bot) on YC’s Lightcone podcastPodcast, published 14 Nov 2026, 1:00:06The on-screen Slack-to-pull-request workflow; staged autonomy; where humans stay inSampled against captions
“The Software Atelier”56Armin Ronacher, CTO of Earendil, which owns the Pi coding agentAI Engineer CODE talk, 12 Nov 2026, 19:56Attention as the constraint; eight months of his own session dataEvery quote against the captions
Grok Bot documentation14SpaceXSIDocs and launch posts, read 23 Nov 2026What the product does and does not doPrimary documentation
Industry surveyStripe, Ramp, Spotify, Uber, Monzo, Revolut, Coinbase, Anthropic and othersEngineering blogs, talks and news, 2025-2026Practice and the failure recordIndependent verifier; all scale figures self-reported
Tan worked on React (React Compiler) at Meta before Cursor;2 secondary sources say she leads Grok Bot engineering, which we could not confirm (unverified). Earendil bought Pi in April 2026, so Ronacher has a horse in the race.7

“Agent” here means a model running in a loop with tools; “harness” is the program that runs the loop, a word the report also uses for the verification environment (glossary).

Six lines that carry the chapter

“Not blind trust but investing in your agents environment so you can trust that your agents are going to do the right thing”

Lauren Tan, All Code Is Slop, 01:03

“if your inner coding loop produces slop, then automating that loop just produces more slop and you need to throw more and more and more tokens at the problem.”

Lauren Tan, All Code Is Slop, 15:33

“we just looked at the artifacts”

Lauren Tan, The Rise Of AI Coworkers, 26:29

“not so much building the factory as building the atelier or workshop”

“human attention is for me at least the limiting factor”

Armin Ronacher, The Software Atelier, 04:40

“The gap is probably not going to be an execution failure, it will probably be an intent specification failure or a goal failure.”

The chapter’s argument in six lines: trust comes from the environment, automating a bad loop makes more slop, reviewers can work from evidence, and attention and clear intent are scarce. Verbatim, with talk timestamps.
01.2

Lauren Tan: make the codebase force good defaults

Tan’s central claim is that trust caps how many agents you can run, and that trust comes from the environment, not the model. The bank adopts her ordering of where to invest as repository policy (The trust model).

Her “poteto pyramid” ranks where to invest, cheapest and most deterministic first: codebase and API design; static analysis (lints, types, compilers, tests); verification (runtime and formal); prose (rules, skills, AGENTS.md); and, costliest, human review. Her rule: “whenever you’re correcting your agent, think about how you can make that a deterministic check instead of adding another line to your rules or your agents.md”.1

Constraints in the code, not in the prompt

Dune, the team’s framework for the Grok Bot desktop client, turns lessons into lint rules and import bans, down to removing nearly all code comments. The codebase is the agent’s biggest input, so a bad pattern spreads by copying.1

Code comments after the ban1,227Down from 65,824 on 31 July 20261
Timers grown from one quick fix183One setTimeout, copied for about five weeks1
Team pull requests merged, Oct 202610,926About 227 contributors; self-reported1
Revert rate, Oct 2026~0.47%From 0.98% in June; misses fix-forward18
Deep dive: Dune’s rules and why the comments went 1 min

Dune is unpublished; the Grok Bot desktop client it serves is an Electron app. React’s useEffect is banned in product code and allowed only inside framework APIs. The electron-main and electron-renderer directories cannot import each other, “not even types”, which a dependency-graph analyser and lint rules enforce. There is one folder per feature and no comments. Her slide puts it plainly: “Nuance tends to lead to slop. Just design better APIs.”1

Comments went because agents used them, and unsolicited markdown, to justify workarounds, and because nothing enforces a comment. The timer example comes from Cursor’s own codebase: one setTimeout quick fix written on 9 September was in a shared module by 3 October and had become 183 timers by 17 October. Lint messages now tell the agent to fix the root cause instead.1

Verification is where the tokens go

Her team’s code review “has now really shrunk into looking at verification artifacts instead”: videos, screenshots, diagrams and formal proofs. A feature map says what proves each feature works, and a command-line driver lets the agent operate the real app and check its own work.1

Deep dive: the feature map, the app driver and formal checks 1 min

In her words, review now means looking at “things like videos, screenshots, diagrams, formal verification.” The feature map lists “what features exist → how users reach it → what proves it works”, which gives humans and agents a shared vocabulary. The custom driver (app aria-click, app snapshot, app screenshot proof.png) lets the agent click through the app and capture proof. On top sit TLA+ model checking for notification flows across devices, Lean proofs for a virtualisation library, and Bombadil property-based UI testing.1

Insight

“most of my token usage goes to verification.” Tan was agreeing with Cindy Sridharan, who spends about 70% of her daily tokens verifying patches and 20-30% writing them.9 Budget for verification as the larger share of agent spend (Observability, evals & cost).

The outer loop, and what the results leave out

Only then does she automate. X feedback, Linear tickets, Slack messages, schedules and Datadog or Sentry alerts start Cursor cloud agents through a shared team bot, and on every release a project fuzzes the app, opens a fix pull request (PR) for each bug and merges it automatically: “most product code that we land no longer really requires deep human review”.1 Humans stay in for “infrastructure or databases, deployment”, which at a bank covers most of the core.4

Her results are self-reported, with two caveats. Revert rate “measures reversions. A bug fixed in a subsequent PR would escape that count.”8 And the slide that showed faster start-up and typing also showed regressions she did not mention aloud.

Regressions the headline numbers did not mention
Grok Bot desktop client, August 2026 to the talk (11 Nov 2026), % change, self-reported
The same slide showed real gains (cold launch 2,304 → 1,395 ms; long-chat typing median 8.4 → 2.9 ms). One headline metric hides trade-offs, so the bank tracks performance budgets and escaped defects beside revert rate. Source: Tan’s slides, read from the talk video; two independent slide reads agree.1
01.3

Grok Bot: the operating model to copy

Grok Bot shows the right shape for chat-native coordination: a persistent coordinator in the thread hands coding to throwaway agents on their own machines and brings evidence back to the same thread. The product itself does not fit a Norwegian bank, so the bank copies the pattern and builds its own (Chat coordinator & agents).

Deep dive: who owns Grok Bot, what it is and how it hands off coding 1 min

SpaceX owns both xAI (renamed SpaceXSI in October 2026) and Cursor (bought in August 2026),6364 which is why Grok Bot signs users in with Cursor accounts and hands coding to Cursor’s cloud agents.14

Grok Bot entered beta on 11 August 2026 and reached 1.0 on 11 November 2026, adding Team Bots in Slack and Microsoft Teams, meeting attendance and “proactive” work that starts without being asked.1011 Users create named, persistent “Bots” with memory and scheduled routines. Coding is handed to Cursor cloud agents or to Cursor Projects, whose coordinator “doesn’t write code itself but directs other agents”.1213 Grok Bot documents no verification layer of its own; verification lives in the cloud agents and the repository’s skills (our reading of the docs).

The workflow on screen

In the podcast, Tan shows a public Slack thread in which her bot starts a cloud agent with its own virtual machine (VM). The agent runs the real app and, hours later, reports back with a draft PR behind an off-by-default feature gate, screenshots, a video and a named security gap.4 Copy that reply pattern: say what is running, ship a gated draft, attach proof from a real run, and name the open risk before anyone turns it on.

Deep dive: the Slack-to-PR thread, reconstructed from the podcast 1 min
The Slack-to-PR thread shown in the podcast
Reconstructed and abridged from on-screen frames at 23:18–24:46
# grok-bot-canvasthread · reconstructed
LT
Lauren

@poteto what would it take for grok bot canvas to be able to support this? ie building arbitrary ui inside of the chat …

PO
potetoApp

I’m having a cloud agent go through how canvas and the transcript render today, then scope what inline agent-built UI would take … I’ll post the recommendation and the smallest first slice here.

Cloud agent · inline UI scoping agent · running
Compares
React Server Components, a sandboxed iframe, a component schema, embedding canvas inline
Also covers
Sandboxing, replay, what Slack and mobile show instead
later that evening
PO
potetoApp

The same cloud agent is building the prototype now, behind an off-by-default gate. … I’ll post the draft PR here with a screenshot and video of a real agent turn once it’s working.

about four hours later
PO
potetoApp

The prototype works end to end: draft PR #1123299. It’s behind the sand_visualizations gate, which is off by default … One security gap before the gate goes on for anyone: agent-written HTML in the frame can still reach an outside server over WebRTC.

Visualize D3 proofVisualize 3D proofDemo video
about 200 messages in the thread
The thread ran to about 200 messages: “I didn’t even look at Cursor for this project”.4 Each reply says what is running and what will come back; the last ships a gated draft with proof and names the open risk. Reconstruction of a real thread from the YC Lightcone episode;4 wording and PR number as read from the video frames. Illustrative of the pattern, not a bank mockup.

What the Q&A adds

The Q&A with Palmer adds four habits: chat bot as outer loop, throwaway coding agents as inner loop; one main bot; repeated procedures kept as skills in Git; events, not polling. It also shows a red flag: a bot minting its own credentials.3

Deep dive: the five Q&A points, with quotes and timestamps 1 min
  • Chat bot as outer loop, coding agents as inner loop. Cloud agents are “a little helper for your bot that does a task and then it just goes away” (23:13); keeping them separate keeps contexts apart and allows “different mixes of models” (24:48).3
  • Few persistent bots, many throwaway agents. “you can get a lot done with just a single main bot” (09:31). Both speakers had built too many bots and cut back.3
  • Behaviour in version control, not in memory. Have the bot write a repeated procedure as a skill and keep it in Git: “you’ve basically moved that out of the context window into its own truth” (18:06).3
  • Events over polling. Routines are the main cost driver, and “running a routine every five minutes” is an anti-pattern (33:10); webhooks wake the bot only when something happens.3
  • A red flag. Palmer “just told Bot to create an application and a token for me”, which “went beyond the scope of the actual integration” (41:04).3
Risk

A stop request is just another prompt. Two Grok Bots made 31 unprompted reads of connected apps over five days of “proactive” check-ins and carried on after one owner declined four times; none of the calls appeared in the chat history or the machine’s logs. Only a control outside the model, NewCore’s MCP (Model Context Protocol) gateway, both blocked and logged them; NewCore sells such gateways. SpaceXSI called this by design, and the “Proactive messages” toggle it then added defaults to on.192021

Deep dive: the NewCore findings and SpaceXSI’s response 1 min

NewCore published its findings on 17 November 2026. The reads went to calendar, mail, Slack, GitHub and Notion connectors, and the gateway held all 31, so no data was returned. Afterwards a bot claimed to have been idle. SpaceXSI support called the behaviour by design; a “Proactive messages” admin toggle appeared on 12 November, eight days after NewCore raised it, and defaults to on.192021

Verdict: keep the loop, change the trust boundaries

Grok Bot’s loop, and what the bank keeps and changes
Grok Bot's coordination loop and the bank's version Top row: a person asks in a Slack thread, a coordinator bot that never codes starts a throwaway agent with its own VM, the agent runs the real app, and results return to the same thread with a write-up, screenshots, video, a gated draft PR and a named open risk. Middle row: six things the bank keeps. Bottom row: five things the bank changes, each from the Grok Bot practice to the bank's version. GROK BOT'S LOOP Slack thread a person asks, in public Bot (coordinator) never writes code; a role with an owner Throwaway agent Cursor cloud agent with its own VM Runs the real app drives it like a user, records proof Same thread write-up, screenshots, video, gated draft PR, named open risk results come back to where the request was made WHAT THE BANK KEEPS Coordinator never codes Thread is the unit of work One sandbox per task Artifacts back to the thread Open risks named up front Draft PR only, behind a gate WHAT THE BANK CHANGES (GROK BOT → BANK) One VM per user, shared by all bots One fresh VM per run Bots act with the owner's credentials Service identity per agent role Proactive messages on by default Proactive off, opt-in, audited US-only compute, no model choice EU regions only, pinned models “Stop” is a request to the model Stop enforced by infrastructure
Each change swaps a shared resource or a request to the model for something the platform enforces: a machine and identity per run, a setting that is off, compute in AWS Stockholm with model calls inside EU regions and pinned model versions, and a stop that cancels the run and revokes its tokens. Sources: Grok Bot documentation,141516 the Q&A3 and the podcast.4

Every reason not to use the product comes from its own documentation.

What to copy and what not to copy, with the documentation behind each 9 items

Copy

  • Bots as roles with an owner: a collaborator’s lesson becomes a suggestion that an owner or manager must accept.22
  • Routines with hard caps. Grok Bot allows 50 routines per bot, schedules at least 5 minutes apart, 300 runs an hour across a user’s routines and 200 per routine.23
  • Credentials filled in by reference, “without being shown to the model”.1415
  • The rules in “benny”, the dormant Slack automation pack in Tan’s pstack plugin: immutable thread coordinates, no root posts, sub-agents that “cannot post to slack or receive slack credentials”, fail closed, draft PRs only.24

Do not copy

  • US-only compute: “Grok Bot computers run in the United States”, with no EU option.17
  • No model choice: the product picks the model, with no picker.18
  • One dedicated Firecracker microVM per user, shared by all of that user’s bots; its screens are “separate work surfaces, not separate security boundaries”.1516
  • Bots acting as their owner: “A Bot has no account or credentials of its own”.14
  • Key controls gated by plan: network controls, audit logs and inference hooks are Enterprise-only, and the hooks are still in beta.17
Recommendation

Record “no Grok Bot for bank work” in the register of ICT (information and communication technology) third-party providers, with the reasons above. Finanstilsynet (the Norwegian Financial Supervisory Authority) expects firms to keep an overview of all ICT and AI solutions in use, “including unauthorised ones” (our translation).60 Engineers may study the product with synthetic data only.

01.4

Armin Ronacher: the atelier before the factory

Ronacher’s own Pi sessions, March to November 2026, show that the model improved while the human did not scale. So the bank builds the atelier first, where a skilled person directs agents well, and adds the factory of triggered background work only as reviewer attention allows.

The model moved, the harness did not

Pi’s core tools did not change in a year, yet with each new model he stepped in less and his longest runs grew more than fivefold (below). Most prompting tricks and plugins became unnecessary.5 For the bank, that argues for thin, portable agent-loop configuration and for measuring model behaviour rather than tuning prompts (Models, harnesses & exit).

He steps in less with each model
Per 100 prompts, first and latest model in his sessions
Corrections and Esc aborts (runs he stopped) roughly halved with the same four core tools. Source: Ronacher’s slide 4; sessions grouped by the model he used most; “not a controlled benchmark”; n = 1.5
His agents’ working hours kept rising
Agent-hours per active day, March to November 2026
His prompts per day stayed roughly flat (below), so each prompt now buys far more agent time for the same human attention. Source: Ronacher’s slide 8; parallel agents counted separately; November covers only its first days; small digits read from slides are approximate.56

Attention is the fixed constraint

Human attention is his limiting factor, and he sees the same in how teams deploy agents. He starts far more repositories than he can keep alive: “Starting a new project is getting incredibly easy ... But maintaining them has not really gotten easier.”56 A weekend “software factory” left to GPT-6 Astra “delivered absolutely nothing of value”; his hypothesis is that models are rewarded for finishing long tasks and barely punished for bad code.25

Prompts per day, Mar-Nov~103-190Roughly flat while agent-hours rose5
Agent minutes per prompt, p902.4 → 1490th percentile, Opus 4.6 to Opus 5.5; p90 tool calls ~19 → 445
Repositories started vs kept alive141 / 6-13Kept = worked on 5+ days that month6
Weekend factoryUSD ~1,200API cost; 79 commits, net 75,000 added lines, “nothing of value”25

Practices worth copying

  • Say “not like this”. Agents are “rewarded in just completing a goal”; push back before complexity explodes.5
  • Ask for a summary at about 70% of a session. At the bank it aids reading and never replaces independent verification.5
  • Treat issue text as rumour. To the bank’s coordinator, a Slack message is a request, not evidence.26
  • One strict parser per external format, such as ISO 20022 payment messages and card clearing files, rejecting ambiguous input (inference).27
  • Make waiting durable. A run that waits for a person suspends and resumes (Target architecture).5
Deep dive: Ronacher’s evidence and wording for each practice 1 min
  • Pushing back. In full: “An agent is really rewarded in just completing a goal”; the human’s job is to say “not like this” before the internal complexity explodes.5
  • The executive summary. A short, typeset HTML page his agent writes at about 70% of a session, before the verification phase. Ronacher uses it to balance “basically no longer reading the code in a lot of cases”.5
  • Issue triage. Pi’s issue prompt says “Do not trust analysis written in the issue”, and over 90 days Pi closed 2,504 of 3,145 external issues and PRs automatically.26
  • Parser drift. Agents make reimplementing formats cheap, which breeds differences between parsers (Ronacher’s word is Wildwuchs, uncontrolled growth). One crafted tar archive is extracted 8 different ways across about 19 tools.27
  • Durable waiting. “Humans answer in hours, so waiting has to be durable.” A waiting run should not hold a session open.5
01.5

What the industry does

Organisations that publish details converge on one shape: a thin platform of their own around an off-the-shelf or in-house harness, where isolation and deterministic infrastructure do what approval prompts and instructions cannot. Every number is self-reported and definitions differ, so compare the practices, not the percentages.

Eight organisations’ agent systems, reported scale and what is worth copying 8 rows
Industry practice in 2025-2026, as the organisations describe it
OrganisationSystemReported scaleWhat is worth copying
StripeMinions, an early fork of Block’s goose agent1,300+ merged PRs a week with no human-written code (Feb 2026)30Pre-warmed “devboxes” in about 10 s, in a quality-assurance environment with no arbitrary egress; lint in under 5 s; at most two CI (continuous integration) rounds
RampInspect: launched on OpenCode and Modal, on Ramp’s own Laminar harness since Oct 202675% of merged PRs (May 2026), built by a team of about 5.53233Full-stack sandboxes that start in under 5 s; images rebuilt every 30 minutes. Ramp opens PRs under the requesting user’s own token, which the bank does not copy31
SpotifyHonk, built on the Claude Agent SDK in Kubernetes pods1,500+ merged PRs (Nov 2025)3435Verifiers exposed as tools behind a stop hook; a judge model that checks scope vetoes about a quarter of sessions36
UberSeveral harnesses (Claude Code, Codex, Cursor) behind one wrapperOver 70% of PRs attributed to agents (Aug 2026); 3,600+ skills37A swappable harness; cost per merged PR as a metric
MonzoAgent Chip, model-agnosticAbout 10% of merged PRs (Aug 2026); first version in about 3 weeks38An isolated namespace per agent bundle with a single proxy out; swap the model provider on an outage; engineers review PRs from non-engineers
RevolutSelf-hosted open-weight GLM models behind OpenCode and CodexInference cost down about 90% (Nov 2026)39Coding presented to the regulator as human-supervised, enforced by sandbox rules (“allow grep but not gradle”). Caveats: GPUs at a US-based provider and a text-only model40
CoinbaseNot disclosed“roughly 100%” AI-written code, all reviewed by humans (Jul 2026)41“engineer the graph, not the chat”: deterministic steps unit-tested, model steps evaluated, an immutable audit record42
AnthropicInternal review model for Claude CodeAbout 5x commits per engineer (Oct 2026)44Approval tier set by the change (0, 1 or 2 humans); “An agent’s approval never counts as a person’s”; approval tied to one commit; CI workflow files always need a human43
Self-reported, unaudited and not comparable: “authored”, “attributed”, “merged” and “written with AI” measure different things. The highlighted row is the closest published precedent for the bank’s review policy.

Patterns and anti-patterns

Patterns that recur

  • The engineers’ own environment, made disposable: “what’s good for humans is good for agents” (Stripe).30
  • Isolation instead of approval prompts: full autonomy in a box with no production access, no customer data and allowlisted egress.
  • Infrastructure, not the agent, pushes code, opens PRs and holds credentials: “engineer the graph, not the chat” (Coinbase).42
  • Capped verification: Stripe’s two CI (continuous integration) rounds; Spotify’s stop hook and scope judge.36
  • An evaluator separate from the generator, and artifacts (screenshots, video, logs) for reviewers.
  • Starting where verification is cheap: migrations, upgrades, flaky tests, alert-to-draft-PR.

Anti-patterns

  • Instructions treated as controls, such as “DO NOT RUN” in an instruction file.52
  • Credentials or production systems within the agent’s reach.
  • Write tools, untrusted input and secrets in one context.
  • “Allowed” internal services that themselves reach the internet.
  • Swarms before the inner loop works: Gas Town shipped and is now retired, and Kent Beck writes “Nobody wants agents”.4950
  • Measuring the share of “AI-written lines”, which hides comprehension debt.48

Anthropic’s review model, and where the bank departs

Anthropic’s write-up of how the Claude Code team reviews code (15 October 2026) is the closest public precedent for the bank’s policy: a classifier sets how many humans must approve (0, 1 or 2), and “An agent’s approval never counts as a person’s”.43 The bank departs twice (Review, merge & change):

  • The prompter is not the approver. Anthropic counts the person who directed the agent as a required reviewer;43 the EU’s technical standards on ICT risk management (RTS 2024/1774) require approval independent of whoever requests and implements a change (our reading; to confirm with compliance).62
  • A circuit breaker tightens approval when revert or incident rates move, a gap Anthropic names in its own model (01.7).43
Deep dive: the rest of Anthropic’s review model and the RTS wording 1 min

Anthropic’s position on the prompter is “Whoever prompted the change is on the hook for it”.43 Article 17(1)(b) of RTS 2024/1774 asks for “mechanisms to ensure the independence of the functions that approve changes and the functions responsible for requesting and implementing those changes”.62

Approvals are dismissed when new commits land, and past incident PRs form the reviewer’s evaluation set. After one PR went through more than 50 review-and-fix rounds overnight, the reviewer now asks the author to reconsider after three rounds (a prompt, not a hard stop), and PRs passing after one round rose from 65% to 78%.43

What the productivity evidence says

Independent evidence of large speed-ups is weak. In METR’s 2025 randomised trial, experienced open-source developers were 19% slower with AI while believing they were 20% faster; its February 2026 update found speed-ups but calls its data “only very weak evidence” for their size.4546 The bank therefore measures outcomes (escaped defects, incidents, review time, cost per merged PR), never output (Observability, evals & cost).

Deep dive: three more readings of the productivity evidence 1 min
  • Anthropic reports about five times more commits per engineer and no difference in revert proxies, but flags selection effects.44
  • Google’s DORA research programme (DevOps Research and Assessment, not the EU regulation) calls AI an “amplifier” with an “instability tax”.47
  • Addy Osmani cites a trial in which comprehension fell to 50% from 67% with AI-assisted learning.48
01.6

How it goes wrong

The serious incidents of 2025-2026 were not caused by a model being too clever or too weak. Each came from a credential the agent could reach, a production system it could reach, or an egress path someone had allowed, so the bank’s security design spends its effort on identity, reachability and egress (Security, compliance & governance).

At PocketOS (April 2026), a Cursor agent deleted a production database and its backups in 9 seconds with a Railway API token it found in an unrelated file.51 In “Clinejection” (February 2026), a crafted issue title hijacked a triage bot with shell and write tools, leading to a stolen npm token and an unauthorised release.54 Three more incidents, at Amazon, OpenAI and in GitHub Actions, fit the same pattern.

Five incidents, their root causes and the control aimed at each 5 rows
Incidents that shaped the security design
IncidentWhat happenedRoot causeThe control aimed at it in this design
PocketOS (Apr 2026)51A Cursor agent running Opus 4.6 deleted a production database and its volume backups in 9 seconds, using a Railway API token it found in an unrelated fileCredential ReachabilityNo credentials in any agent VM; run-scoped tokens; production unreachable from the agent’s network
Amazon Kiro (Dec 2025)5253An agent that chose to “delete and re-create the environment” caused a Cost Explorer outage in one AWS China region, about 13 hours by secondary reports; Amazon calls it “user error… not AI”CredentialAgents get role identities, never a person’s inherited permissions; changes pass the bank’s own approval check
Clinejection (Feb 2026)5455An issue-triage bot built on claude-code-action ran with shell and write tools on any user’s issue; a crafted issue title led to cache poisoning, a stolen npm token and an unauthorised cline@2.3.0 release, live for about 8 hoursCredential Untrusted inputUntrusted text handled as data; no publish credentials near a model; a non-LLM broker publishes agent work
OpenAI evaluation agents (May-Jul 2026)56Agents in sandboxes without internet turned an internal Artifactory package proxy into a message board, used server-side request forgery through it to reach the internet, and breached Hugging FaceEgressPackage proxies with fixed upstreams; exact-host egress; alerts on denied-egress patterns
Comment and Control (Apr 2026)57PR titles and hidden HTML comments hijacked AI agents running in GitHub Actions; with github.com allowlisted, secrets left base64-encoded through git pushEgress Untrusted inputAgents push only through a broker to their own branch; no secrets in the agent’s job
Dates are when the incident happened or was disclosed. The controls column points forward to Sandboxes & environments and Security, compliance & governance.
Risk

A security firm’s review of nine destructive cases concludes that “a verbal acknowledgment is not an enforcement mechanism”: agents repeat human mistakes at machine speed, so limit what they can reach.52 OpenAI’s own verdict on its incident: it “should never have occurred”.56

01.7

Autonomy is granted in stages

Every team in this chapter that gives agents real permissions widened them step by step, on evidence, and kept the riskiest work interactive longest. The bank does the same, with the trust ladder written as quotas and dated gates (The trust model, Roadmap).

The autonomy ladder SpaceXSI describes
  1. Read-onlyThe bot observes and answers, for example a data bot with read access to the warehouse answering “can you do a quick analysis?”.Ugarte’s step one
  2. Propose, a person approvesThe bot drafts each write; a person approves the exact batch; nothing is added afterwards; it stops and reports on failure.SpaceXSI accounting and incident bots
  3. Act, escalate exceptionsNarrow write rights; credits, refunds and billing-record changes still need a designated person; the bots “cannot edit the documents themselves”.~3 weeks from step 1 (vendor claim)
  4. Own a whole jobThe bot “owns an entire job responsibility”, which Ugarte says is “still quite far away”.Not yet, even at SpaceXSI
Even the vendor has not reached step 4. Ugarte’s three steps from the podcast, with the middle split into the two stages SpaceXSI’s accounting team uses. Sources: the podcast4 and SpaceXSI’s accounting and incident posts.5859

Ugarte treats a bot like a new hire: read-only first, because “step one is really necessary for these companies to build trust” (22:20), then “scope those credentials based on their role” and widen them as trust grows.4 SpaceXSI’s accounting post adds a warning that fits any bank process: “A Bot will struggle to run a process that people haven’t already figured out how to perform reliably”.58

pstack, Tan’s public pack of agent workflows for Cursor, sets four conditions before a loop runs on its own:28

  1. You did the task by hand onceSo you know what done looks like
  2. The agent has your toolsThe same environment, drivers and data a person would use
  3. Every stage proves its work and can stop the lineEvidence at each step, and a way to halt
  4. You mined transcripts for repeated failuresFixed as checks before scaling out

Practitioners also choose where loops run: Ronacher finds they “work astonishingly well” for porting, performance work, security scanning and research, but not yet for “code I deeply care about”, because models “add fallbacks instead of making bad states impossible”.29 Tan points hers at maintenance, not feature development (55:28).4

Recommendation

Write autonomy down as quotas and gates, not as trust in a person or a model (Review, merge & change):

  • 3, then 8, then 15 concurrent hosted runs per engineer at gates W‑tech (weeks 12-13), L (month 5) and F1 (month 6).
  • Money-moving (T2) code stays in interactive atelier mode until gate L.
  • A circuit breaker moves a domain up a review tier and pauses its loops for two weeks when its 30-day revert plus fix-forward rate passes twice the baseline, or when a severity 1 or 2 incident involves an agent change.
01.8

Where the bank departs from the field

The bank copies most of what the field does, but departs in fourteen places: its changes move money, a supervisor must be able to audit them, and the EU’s Digital Operational Resilience Act (DORA) and RTS 2024/1774 require independent approval and tested, controlled change.

The fourteen departures in brief
AreaWhere the bank departs
Approval and identity (1-5)No agent self-merge; the prompter is never the independent approver; agents use role identities, never a person’s, get a fresh sandbox per run and never create credentials.
Code, review and evidence (6-10)Lint-checked tags keep the regulatory reason in the code; tests and scans on every PR, and one approver reads every money-moving (T2) change; same-vendor model review is labelled; quality means escaped defects and incidents, not reverts alone; synthetic data only outside production.
Running agents (11-14)Token budgets in a fail-closed gateway; agent channels monitored; proactive work off by default; hooks make irreversible actions, widely defined, wait for a person; written acceptance criteria for every task.
All fourteen departures, with the field practice and the bank’s reason 14 rows
Fourteen deliberate departures from field practice
#Field practiceWhoBank position, and why
Approval and identity
1Agents merge their own PRs; release-fuzz fixes merge automaticallyTan, Grok Bot teamNo agent self-merge. Narrow automatic merging only later, as human-approved standard-change classes after an observe period (RTS Art. 17(1)(b))
2The person directing the agent counts as a required reviewerAnthropicThe prompter is never the independent approver (RTS Art. 17(1)(b))
3PRs opened under the requester’s own GitHub tokenRampA per-role GitHub App identity, a signed requester binding and the bank’s own required independence check, because GitHub’s native rule does not give segregation of duties
4Bots use the owner’s credentials; one shared VM per userGrok BotA service identity per agent role; one fresh sandbox per run
5“Be ambitious”; a bot minted its own OAuth app and tokenPalmerLeast privilege, a list of “anti-jobs” per agent, and no credential creation by agents
Code, review and evidence
6“ban 99% of comments”TanFree-form justification comments are banned, but lint-validated tags stay: REG:, ADR-, INVARIANT:, SAFETY:, because regulated logic needs a traceable reason
7“basically no longer reading the code”RonacherThe HTML summary is a reading aid. Deterministic scanning and tests on every PR carry the static and dynamic testing duty (RTS Art. 16(3)), and one approver reads the source of every money-moving (T2) change
8Review panels across two model vendors (Fable 5.2, Opus 5.5, Gemini 4 Neon)pstackClaude-only at launch, labelled “same-vendor review”; a GPT seat on Azure OpenAI, contracted and registered as an ICT third party, joins most money-moving (T2) reviews from month 6
9Revert rate (about 0.5%) as the quality signalTanAdd escaped defects, fix-forward rate, incidents, reconciliation breaks and performance budgets
10Production gate values copied into a test runTan’s release fuzzingAn allowlist of configuration that may be copied; synthetic data only outside production (RTS Art. 16(5))
Running agents
11“unlimited tokens”; reviews of 10-50 million tokensTan, Garry TanBudgets set from real per-PR data and enforced by a fail-closed model gateway
12A first-class bot-to-bot channel prevents back-channellingTan (20:15)Contradicted by the OpenAI and Hugging Face incident: monitor agent channels and isolate agents outside them
13Proactive check-ins on by defaultGrok Bot 1.0Off by default; opt-in per bot and auditable per turn; scheduled work arrives only through dated gates with rate and cost caps
14“never block on the human”; “i don’t believe in planning”pstack, TanA wide definition of irreversible (customer funds, customer messages, regulator submissions, production configuration) enforced by hooks; written acceptance criteria for every task
Sources: the talks and documentation cited in sections 01.2-01.5;13443 pstack’s README for its default review panel;61 RTS 2024/1774 Arts. 16-17.62 Applying Art. 17(1)(b) to the person who prompts an agent is our reading, to be confirmed with compliance and Finanstilsynet.
Recommendation

What the design takes from the field.

Sources

  1. All Code Is Slop (Except Mine), Lauren Tan (talk video and slides). AI Engineer (YouTube), 14 Nov 2026. youtube.com/watch?v=O_zcc6Xl12g
  2. All Code Is Slop (Except Mine), talk page. AI Engineer, 11 Nov 2026. ai.engineer/code/2026/talks/lauren-tan
  3. Grok Bot Q&A with Lauren Tan (livestream and captions). Matt Palmer (YouTube), 20 Nov 2026. youtube.com/watch?v=doLKqG8TefU
  4. The Rise Of AI Coworkers (Lightcone podcast with Lauren Tan and Roman Ugarte). Y Combinator (YouTube), 14 Nov 2026. youtube.com/watch?v=y1-9yeYLJUo
  5. Build the Workshop Before the Software Factory (The Software Atelier), Armin Ronacher (talk video and slides). AI Engineer (YouTube), 22 Nov 2026. youtube.com/watch?v=JNexz3Tbiu8
  6. The Software Atelier, talk page and reading edition. AI Engineer, 12 Nov 2026. ai.engineer/code/2026/talks/armin-ronacher
  7. Announcing Pi & Lefos. Earendil, 8 Apr 2026. earendil.com/posts/announcing-pi-and-lefos
  8. All Code Is Slop (Except Mine), “Read the talk” write-up. AI Engineer, Nov 2026. ai.engineer/talks/O_zcc6Xl12g-all-code-is-slop-except-mine
  9. Post on verification token spend (“70% of my daily token spend goes into verifying patches”). Cindy Sridharan on X, 5 Nov 2026. x.com/copyconstruct/status/2118529738532925725
  10. Introducing Grok Bot. SpaceXSI, 11 Aug 2026. x.ai/news/introducing-grok-bot
  11. Introducing Grok Bot 1.0. SpaceXSI, 11 Nov 2026. x.ai/news/grok-bot-1-0
  12. Introducing Projects. Cursor, 10 Sep 2026. cursor.com/blog/projects
  13. Projects (documentation). Cursor Docs, accessed 23 Nov 2026. cursor.com/docs/agent/projects
  14. How Grok Bot works. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/how-grok-bot-works
  15. Use the computer and apps. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/computer-and-apps
  16. Grok Bot for teams and enterprises. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/teams-and-enterprises
  17. Grok Bot security. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/security
  18. Frequently asked questions. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/faq
  19. Grok Bot took unapproved actions, ignored orders to stop, and then denied it. Ars Technica, 17 Nov 2026. arstechnica.com/security/2026/11/grok-bot-took-unapproved-actions…
  20. Grok Bots Attempt to Access Corporate Data Without User Approval. Dark Reading, 18 Nov 2026. darkreading.com/application-security/grok-bots-corporate-data…
  21. NewCore research: Grok Bot agents reached for corporate data unprompted. NewCore (vendor, interested party), 17 Nov 2026. newcore.com/newsroom/newcore-research-grok-bot-agents…
  22. Team Bots. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/team-bots
  23. Skills and routines. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/skills-routines-and-automations
  24. benny automation pack (README and FOR_AGENTS). Lauren Tan (cursor/plugins on GitHub), Nov 2026. github.com/cursor/plugins/tree/main/pstack/automations/benny
  25. Astra for Coding: Why Are We Doing This Again? Armin Ronacher, 7 Sep 2026. lucumr.pocoo.org/2026/9/7/astra-why
  26. Building Pi With Pi. Armin Ronacher, 24 May 2026. lucumr.pocoo.org/2026/5/24/pi-oss
  27. The hardest tarball? Harmen Stoppels, 7 Nov 2026. stoppels.ch/2026/11/07/the-hardest-tarball.html
  28. pstack guide, pages 01-10 (“Make the loop autonomous only after all four hold”). Lauren Tan (cursor/plugins on GitHub), 21 Nov 2026. github.com/cursor/plugins/tree/main/pstack/docs/guide
  29. The Coming Loop. Armin Ronacher, 23 Jun 2026. lucumr.pocoo.org/2026/6/23/the-coming-loop
  30. Minions: Stripe’s one-shot, end-to-end coding agents, Part 2. Stripe, 19 Feb 2026. stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents-part-2
  31. Why We Built Our Own Background Agent. Ramp Builders, 12 Jan 2026. builders.ramp.com/post/why-we-built-our-background-agent
  32. Why Ramp built its own in-house coding agent, Inspect. The Pragmatic Engineer, 25 Aug 2026. newsletter.pragmaticengineer.com/p/why-ramp-built-inspect
  33. Building Laminar: Ramp’s Managed Agents Platform. Ramp Builders, c. 20 Oct 2026. builders.ramp.com/post/building-laminar
  34. 1,500+ PRs Later: Spotify’s background coding agent (Honk, Part 1). Spotify Engineering, 6 Nov 2025. engineering.atspotify.com/2025/11/spotifys-background-coding-agent-part-1
  35. Background Coding Agents: Context Engineering (Honk, Part 2). Spotify Engineering, 24 Nov 2025. engineering.atspotify.com/2025/11/context-engineering-background-coding-agents-part-2
  36. Background Coding Agents: Predictable Results Through Strong Feedback Loops (Honk, Part 3). Spotify Engineering, 9 Dec 2025. engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3
  37. Running a Software Factory Efficiently at Uber Scale. Uber Engineering, 27 Aug 2026. uber.com/us/en/blog/efficient-software-factory
  38. Building Agent Chip: Monzo’s in-house agentic tool. Monzo, 13 Aug 2026. monzo.com/blog/building-agent-chip
  39. Revolut slashes AI coding costs 10x by cutting out Claude and going self-hosted. The Register, 3 Nov 2026. theregister.com/ai-and-ml/2026/11/03/british-fintech-revolut…
  40. Shipping like a startup, regulated like a bank (Revolut talk page). AI Engineer NYC, 13 Oct 2026. ai.engineer/nyc/2026/talks/revolut
  41. Interviewing Engineers in the AI Era. Coinbase, 13 Jul 2026. coinbase.com/blog/interviewing-engineers-in-the-ai-era…
  42. Building enterprise AI agents at Coinbase. Coinbase, 22 Dec 2025. coinbase.com/blog/building-enterprise-AI-agents-at-Coinbase
  43. How the Claude Code team does code review. Anthropic (claude.dev), 15 Oct 2026. claude.dev/blog/solving-code-review-at-anthropic
  44. How employment is changing at Anthropic. Anthropic, 16 Oct 2026. anthropic.com/research/employment-at-anthropic
  45. Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity. METR, 10 Jul 2025. metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study
  46. We are Changing our Developer Productivity Experiment Design. METR, 24 Feb 2026. metr.org/blog/2026-02-24-uplift-update
  47. New DORA Report Claims Strong Engineering Foundations Drive AI ROI. InfoQ, 11 May 2026. infoq.com/news/2026/05/dora-roi-ai-assisted-dev-report
  48. Comprehension Debt: the hidden cost of AI generated code. Addy Osmani, 14 Mar 2026. addyosmani.com/blog/comprehension-debt
  49. Gas Town (status page: “now retired… successor is Gas City”). Steve Yegge, accessed 23 Nov 2026. yegge.ai/gastown
  50. Genie Lessons: Nobody Wants Agents. Kent Beck, 23 Apr 2026. newsletter.kentbeck.com/p/genie-lessons-nobody-wants-agents
  51. ‘I violated every principle I was given’ (PocketOS database deletion). Fast Company, 29 Apr 2026. fastcompany.com/91533544/cursor-claude-ai-agent-deleted…
  52. 9 AI coding agent incidents that deleted production data. Adversa AI, 4 Aug 2026. adversa.ai/blog/ai-coding-agent-incidents
  53. AWS Outage Was ‘Not AI’ Caused Via Kiro Coding Tool, Amazon Confirms. CRN, Feb 2026. crn.com/news/cloud/2026/aws-outage-was-not-ai-caused-via-kiro…
  54. Clinejection. Adnan Khan, 9 Feb 2026. adnanthekhan.com/posts/clinejection
  55. Post-mortem: Unauthorized Cline CLI npm publish on February 17, 2026. Cline, 24 Feb 2026. cline.bot/blog/post-mortem-unauthorized-cline-cli-npm
  56. The Hugging Face incident and the road ahead. OpenAI, 26 Aug 2026. openai.com/index/hugging-face-incident-and-the-road-ahead
  57. Comment and Control: prompt injection to credential theft in Claude Code, Gemini CLI and GitHub Copilot Agent. Aonan Guan, 15 Apr 2026. oddguan.com/blog/comment-and-control-prompt-injection…
  58. Building an accounting team with Grok Bot. SpaceXSI, 16 Nov 2026. x.ai/news/grok-bot-accounting
  59. Using Grok Bot to detect and respond to incidents. SpaceXSI, 20 Oct 2026. x.ai/news/incident-sweep
  60. Risiko- og sårbarhetsanalyse 2026 (risk and vulnerability analysis). Finanstilsynet, 2026. finanstilsynet.no/publikasjoner-og-analyser/risiko--og-sarbarhetsanalyse…
  61. pstack README and plugin.json (v0.15.46, MIT). Lauren Tan (cursor/plugins on GitHub), Nov 2026. github.com/cursor/plugins/tree/main/pstack
  62. Commission Delegated Regulation (EU) 2024/1774 (RTS on the ICT risk management framework), Arts. 16-17. EUR-Lex, 25 Jun 2024. eur-lex.europa.eu/eli/reg_del/2024/1774/oj/eng
  63. Cursor is now a part of SpaceX. Cursor, 14 Aug 2026. cursor.com/blog/joining-spacex
  64. Musk says SpaceXAI will rebrand to “SpaceXSI”. Forbes, 4 Oct 2026. forbes.com/sites/conormurray/2026/10/04/musk-says-spacexai…