Chapter 08The platform·~15 min read

The chat coordinator: one bot, many agent types, the right tools and routes

How a Slack thread becomes a sandboxed run and comes back with proof; which agents exist and what each may touch; how requests are routed, authorised and tracked; and what waits for later gates.

Engineering Platform team Product Security & compliance

Key takeaways

  1. One coordinator bot that never writes code. It restates the ask, starts runs and returns verdicts, a proof page and a draft pull request (PR) to the thread.1
  2. Authority follows the person who asked. Access is agent profile ∩ requester ∩ thread audience ∩ cell, applying the need-to-know rule of the Digital Operational Resilience Act (DORA); only the requester or a sponsor can instruct a run.2
  3. Ten agent types, all limited to green data at launch. Each has an enforced budget and a Rule-of-Two entry naming its compensating control.3
  4. Routing is deterministic first. A language-model classifier arrives in month 6 and may only raise a risk tier.1
  5. Tools start minimal. A short-lived read-only GitHub token at launch, and a tool gateway only with the first amber data in month 6.4
  6. Nothing is lost. Slack events are stored before they are acknowledged, and the bank's own registry, not Slack, records every run.5
  7. AML is walled off. No bot in anti-money-laundering (AML) channels, AML tasks hidden even as counts, and no AML case content to any model without a legal opinion.6
08.1

What we copy from Grok Bot, and what we change

We copy Grok Bot's operating model and none of its product. Grok Bot 1.0 (11 November 2026) puts a bot in Slack threads that hands coding to cloud agents and posts their artifacts back.7 The bank builds the same shape on its own AWS accounts with Claude Code (why the product does not fit a bank: Lessons from the field).

  • We copy where work happens and how it comes back: a coordinator that never writes code, a thread per task, a cloud virtual machine (VM) per run, and evidence posted back to the thread.89
  • We change identity, autonomy and how a stop works: per-role service identities instead of the owner's logins, no proactive check-ins, follow-ups queued rather than injected, and a stop enforced by infrastructure, not asked of the agent.1114

Check-ins stay off because a November 2026 report counted 31 unrequested attempts by Grok Bot to read connected apps in five days, continuing after an employee told it four times to stop.13

All nine Grok Bot patterns, with the bank's version and the reason 9 rows
What we take from Grok Bot, and what we change
Grok Bot patternThe bank's versionWhy
Copy
Coding goes to Cursor Projects, whose coordinator plans, delegates and "doesn't write code itself"8The coordinator routes, runs intake and reports; code is written only inside a run's virtual machine (VM)Keeps the bot at two of the three Rule-of-Two properties (08.4)
Work lives in a thread; agents run in isolated cloud VMs9Thread → task → runs; one ephemeral VM per run, at most 4 hoursOne unit to authorise, cancel, bill and audit
Screenshots, videos and logs come back to the thread9Per-claim verdicts, a link to the proof page, a draft PR and open risksReview happens on evidence (chapter 06)
Routines fire on events as well as schedules, and an hourly schedule "can use a week of usage in a day"10Humans trigger work at launch; event triggers (never polling) arrive at F1Every run costs money and reviewer attention
Change
Bots use the owner's own logins and permissions11Per-role service identities; the requester is recorded and barred from approvingA requester's token hides the agent and breaks segregation of duties (chapter 09)
All of a user's Bots share one computer; its screens are "not separate security boundaries"12One VM per run, destroyed when the run endsNothing carries over from one task to the next
Proactive check-insOff. The bot starts work or reads a system only when someone asks, and answers in that threadA November 2026 report counted 31 unrequested attempts to read connected apps in five days, continuing after an employee told the Bot four times to stop; none returned data only because the reporter's own gateway held each one13
Follow-ups go into the running sessionFollow-ups start a new run until gate L; then they are queued rows the run readsRamp queues follow-ups that arrive mid-run instead of injecting them ("We chose to queue them")14
Stop is a request to the agentStop is enforced by infrastructure: terminate compute, revoke the token, attach an IAM deny, mark the registryAn agent can ignore a message; it cannot ignore a terminated VM
IAM: AWS Identity and Access Management.

We also adopt the hard rules of benny, the dormant Slack automation pack in Lauren Tan's pstack (verdict Inspire: port the rules, not the Cursor runtime). Above all, the coordinator is the only Slack writer, and the workflow never merges or deploys.15

Deep dive: the benny rules, in Tan's words 1 min

Thread coordinates never change, the bot never posts a root message in a channel, no child run gets a Slack token, missing configuration means stop rather than guess, and the workflow opens draft PRs only.15

"The coordinator is the only Slack poster… Never give a child a Slack token."

Lauren Tan, pstack benny automation pack, Nov 202615

"Never merge or deploy from this workflow."

Lauren Tan, pstack benny automation pack, Nov 202615
08.2

A thread, step by step

A request costs the requester one message, one button press and, later, one review; the platform does the rest, and the thread shows where it is, as in the report's running example.

A thread with the coordinator
Ingrid in the payments squad asks for a feature; a colleague chimes in; the bot comes back with proof
# sq-paymentsthread · illustrative
IN
Ingrid

@agent implement: card spending limit screen per ISSUE-12

AG
agentBot

Here is what I understood. Press Start if it is right.

Task · implement · T1 (flagged UI)
What
Monthly spending-limit screen in card settings, behind a flag; saves through the existing card-controls API, which stays unchanged
Done when
3 acceptance criteria from ISSUE-12
Agent
implement · Opus 5.5 · fresh sandbox
Comes back
draft PR + proof page (video, API transcript, property tests)
Open risk
Android not covered until month 4
StartEditCancel
JO
Jonas

can it do weekly limits too?

AG
agentBotVisible to Ingrid

Jonas added a request. Only your messages reach the run. Adopt it?

AdoptIgnore
AG
agentBot

Started. I will keep this card current and post here when there is something to look at.

Status · implement · running
Step
plan written → coding → ./x verify
Budget
USD 10, enforced at the gateway
Limit
4 hours, then the run ends
41 minutes later
AG
agentBot

Done: 3 claims verified, 1 gap. Draft PR #214 is ready for your review.

  • Limit can be set in card settings, and the screen shows what remains: verified (CI video)
  • The limit is saved through the existing card-controls API, unchanged: verified (API transcript)
  • An empty, zero or negative limit shows an inline error: verified (property tests)
  • Android screen: gap (no Android surface until month 4, so nothing can prove it yet)
CI video 0:31API transcriptProperty tests · 1,000 cases
Open risk: limit currency assumed NOK
Open proof pageMark readyAsk a follow-upStop
Take from this: the bot asks before it acts, filters who may instruct the run, and comes back with claims tied to evidence, not a summary. The verdicts come from the verifier, not the agent (chapter 06); the proof bundle demo shows a real, synthetic bundle. Illustrative mockup; names, issue and PR numbers are fictional.
  1. Ask and acknowledgeStored in the inbox, then acknowledged within Slack's three seconds.5no model involved
  2. IntakeOne tool-less Sonnet 5.5 call reads only Ingrid's messages and drafts the card above. Its "Done when" line is the contract the verifier checks.seconds · USD 0.50 cap
  3. StartNothing runs until Ingrid presses Start; the registry checks her quota.human decision
  4. RunA fresh VM runs Claude Code. Failing continuous integration (CI) gets at most two repair rounds.≤4 h
  5. ReportPer-claim verdicts (verified, failed, not-run, gap), proof page, draft PR, open risks.from the verifier
  6. ReadyIngrid marks Ready and becomes requester of record; an independent approver attests on the proof page.chapter 09

Backpressure is visible. Each engineer may have 3 hosted runs going at once at launch, 8 from gate L (month 5) and 15 from gate F1 (month 6); these are ceilings, not forecasts. Review queues can also hold work back, and the bot says why.1

High-risk (T2) work stays in atelier mode until gate L. The bot offers a bounded subtask or a worktree the requester steers interactively, and never starts a background T2 run.1

Deep dive: queue rules, the intake file and interactive T2 work 1 min

Queue rules. Implement tasks queue while the requester has three or more agent PRs waiting for review, and open T2 agent PRs per domain are capped at twice that domain's certified approvers.1

The intake file. The card's "Done when" line is the oracle: how we will know the change is right. Behind the card sits a draft agent-task.yml with acceptance criteria in EARS form (the Easy Approach to Requirements Syntax), the evidence types, the risk tier and the data class; for T1 and T2 changes it adds a fall-back plan and a security-impact note (chapter 05).

Interactive T2 work. The requester steers the worktree on a laptop or, from month 4, attached to a hosted VM with ./x agent attach.1

All commands and buttons, and the Slack limits behind them 9 rows
Commands and buttons
CommandWhat it doesFrom
@agent <verb>Starts a task: ask, investigate, implement or research; plain language works tooLaunch
!statusPrivate status of this thread's task, in the style of the per-thread command in Claude Tag, Anthropic's Slack agent (public beta)16Launch
!stopTerminates compute, revokes the run token, attaches a deny in AWS Identity and Access Management (IAM); the task stays openLaunch
!whyShows which rules or classifier output routed the requestLaunch
!newStarts a new task in the same threadLaunch
/agentsWhat is running: mine, my team's, needs review, one taskLaunch
Start · Edit · Cancel · Sponsor · AdoptIntake and authorisation decisions, answerable only by the person they are forLaunch
!steerDelivers a message to the running runGate L · month 5
App HomePersonal dashboard: needs you, running, ready for reviewGate L · month 5
Review nudges go out at 09:00 and 13:00, with an end-of-day digest (chapter 15).
Insight

Slack is a surface with hard limits, so it cannot hold state. Events must be acknowledged within three seconds or Slack retries them.5 A streamed message lasts at most 10 minutes and 12,000 characters, so long runs use a status card updated through one outbox instead.17 Posting is limited to about one message a second per channel.18 And the bot must stay an internal app: internal apps keep conversations.replies at 50+ calls a minute and 1,000 objects, while commercially distributed apps outside the Marketplace fall to one call and 15 objects.19

08.3

Ingress, identity and who may instruct

The bot has no authority of its own: a run may do only what the person who asked, the people who can read the thread and the cell all allow, and the identity broker enforces that bound.

Ingress: store first, then acknowledge

Ingress connects over Slack's Socket Mode, so there is no public endpoint.20 It drops guests, external users and bots, masks Norwegian identity, account and card numbers, and stores each event in a Postgres inbox before acknowledging it. A crash can then cause a redelivery, which the inbox ignores, but never a loss.

Deep dive: the five ingress steps 1 min
  1. ReceiveSocket Mode on two Fargate tasks: an outbound WebSocket, so no public endpoint. Slack allows up to 10 connections and suggests the mode for apps behind a firewall.20control account
  2. VerifyCheck the event's workspace and enterprise, and that it is fresh.21no model
  3. DropGuests, Slack Connect channels, external users and bots, using Slack's own user and channel flags.22no model
  4. ScrubData loss prevention (DLP) masks fødselsnummer (mod-11), account numbers, IBANs (mod-97) and card numbers (Luhn).before storage
  5. Inbox, then ackInsert into the Postgres inbox, deduplicated on event_id, then acknowledge. The inbox is also the work queue.one queue, one ordering

The red team asked for one queue rather than a relay plus a queue, so the inbox does both jobs (decision c25).23

The identity broker

The broker, a small service with no large language model (LLM), mints the only tokens a run ever holds. It is the trust anchor because Slack gives the bot only a Slack user ID and standard delegation flows cannot start from a Slack event.24 It maps that ID to the person's Microsoft Entra ID groups; its tokens last 15-30 minutes and can only narrow, and the coordinator cannot mint at all.

Deep dive: how the broker links identities and mints tokens 1 min

Slack gives the bot an authenticated Slack user ID, never a token from the bank's identity provider. The broker maps that ID to an Entra object ID through a link table. An email match is enough for green work only; amber work, implementing, sponsoring and approving need a one-time OpenID Connect (OIDC) link. Entitlements come from Entra groups, are cached for at most 15 minutes and are revoked when the directory's SCIM (System for Cross-domain Identity Management) feed removes the person.

Standard delegation flows need the user's own token, and AgentCore's user-ID variant "treats the userId value as an opaque string and does not verify it".24 So the broker mints only against signed Slack evidence or a verified VM instance identity, once per event or run. Its tokens carry req_sub, sponsor_sub, task_id, run_id, eff_tier, profile and cell.

Requester-bound authorisation: four limits, one intersection
Effective access is what all four allow at once; only a recorded sponsor can widen the second limit
Requester-bound authorisation Four overlapping regions: agent profile, requester or sponsor, audience and cell. Effective access is the small region where all four overlap. effective access Agent profile the catalog entry Requester or sponsor Audience who can read it Cell general or AML PROFILE ∩ REQUESTER ∩ AUDIENCE ∩ CELL
Agent profile
What this agent type may ever touch, from the catalog (08.4).
Requester, or sponsor
The asker's Entra groups, cached for at most 15 minutes.
Audience ceiling
Who can read the thread. Public channel → green; private channel → the lowest tier among its members, checked against the channel's label; direct message → the requester's own; guests or Slack Connect present → refused.
Cell
General, or AML. The AML cell would be a separate deployment; the general bot never sits in it.
Take from this: the bot cannot be used to reach data the asker, or the people reading the thread, could not reach themselves. Source: recommendation §2.3 step 3; internal research note gapx-02.126
Three worked examples: a green answer, amber for one domain, and a denial 1 min

A bot whose rights come only from its profile fails the test in the caption; Claude Tag's channel sessions are an example ("What Claude can do never changes based on who asked").25 The bank's bot instead answers each of these three requests differently.

ask · public channel

Green answer

A question in a company-wide channel. Everyone can read the answer, so the ceiling is green whatever the asker holds.

investigate · private squad channel

Amber for that domain, from month 6

The payments on-call engineer asks why test payments fail. She and the channel both carry amber for payments, so masked non-production telemetry is in scope; the detail sits behind a link.

anything touching AML case data

Denied, with the reason

No entitlement opens it in the general cell. The bot says why in the thread and points to the AML team's own process.

The router never denies silently, because a silent no teaches people to ask a better-entitled colleague to re-post. It says which of three outcomes applies:

  • Downgrade. Start the green part now and say what was left out.
  • Sponsor. Offer the owning team's on-call a button; if they accept, they become requester of record for that part and receive the amber output.
  • Deny. Only for red data, AML work and external audiences, always with the reason.

Who may instruct a run

Only the requester's and the sponsor's messages reach a run. For anyone else's, the requester gets an Adopt button, as in the mockup, and an adopted contributor cannot approve the change on T2; without this rule, the red team found, a colleague could shape a change and then approve it.

Everything the bot posts goes through one outbox with link previews off, because rendered previews are an exfiltration channel; a red-team exercise tests this before W-tech, the launch gate in weeks 12-13 (chapter 10).

Deep dive: adoption records, PR comments and the outbox rules 1 min

Messages from the requester and the sponsor become run_inbox rows that the run reads; anyone else's message is not delivered. Adoption is recorded as adopted_from_oid. The red-team finding is issue 6. Agents read PR comments only from the requester, the sponsor and assigned approvers. Claude Tag makes the same distinction, treating other people's messages as "information for the task rather than … instructions",25 and Open-Inspect refuses follow-ups from other users.27

The outbox is the bot's only path into Slack. It posts with link and media unfurling off, escapes mentions and control sequences, allows links only to listed domains, and quotes and labels any text an agent wrote. The test is the frozen-build red-team exercise, spike S2.

08.4

The agent catalog

Ten agent types, each defined as a file, are all limited to green data at launch: code, docs, synthetic data and public sources. Amber data (operational metadata, masked telemetry, engineering Slack) comes later, only through requester-bound sessions. No agent ever reaches red data: production personal, financial and card data, and secrets.1

Meta's Rule of Two says an agent session should hold at most two of three properties: U, untrusted input; S, sensitive access; C, state change or external communication.3 Where a type needs all three, the catalog names the control that breaks the chain; labels and system prompts do not count.

Agent catalog: ten types, their Rule of Two and their budget
TypeFromRule of TwoBudget
coordinatorLaunchU + CUSD 0.50 a turn
askLaunchU + SUSD 2
investigateLaunchU + S + C: propose-only, closed egressUSD 5
implementLaunchU + S + C: propose-only, closed egress, independent proofUSD 10
reviewLaunchU + S; C only through a non-LLM posterUSD 3 / 8
researchLaunchU + C, no S; queries DLP-checked and loggedUSD 15
prototypeMonth 4As implementUSD 10
maintenanceGate LAs implementUSD 5 a run; hourly caps
triageF1S + C; U only as enumsUSD 3
opsGate OProposal only—
Budgets are starting values (inference), reset after the pilot to p90 × 1.5 (1.5 times the 90th percentile) and enforced fail-closed at the model gateway. The design does not say when each review value applies, so treat them as a range. DLP: data loss prevention. Source: recommendation §4.1
The full catalog: trigger, tools, sandbox and human gate for each type 10 rows
Agent catalog: what each type may touch, where it runs and who signs off
TypeTriggerTools and dataSandbox and permissionsHuman gate
coordinatorEvery eventRegistry, GitHub status, spawn; typed ops.status from F1No VM; intake is tool-less; outbox to the originating thread onlyRequester presses Start
ask@agent askCode search, docs, read-only ./xro VM; read-only tokenNone
investigate@agent investigatePre-fetched CI logs and issues; masked non-prod Sentry and Grafana (month 6); customer tickets only through the B10 readercode-ro VM; returns findings, a failing test as draft PR, propose_spawnRequester
implement@agent implement, issue label./x, skills, git broker; synthetic datacode VM; draft PR on agent/*; path policy; no new direct dependenciesProof green; approver is neither requester nor contributor; T2 atelier until L
reviewReady for review, final pushDiff, CI results, manifest, all as dataLLM step without tools; a non-LLM poster writes commentsOnly reproduced findings block
research@agent research; collectors from month 4Allowlisted fetch through a query-stripping proxy; web search (month 4, eu-west-1); no reporesearch VM: no repo token, secrets or internal network; the broker writes research/**Human sign-off; regulatory items need interpretation-approved
prototypeRequestDesign tokens, fixtures, Tenor synthetic people, fakescode VM; proto/* and video; never mainHuman re-specifies before real work
maintenanceSchedulesAs implementT0 and T1 paths onlyT1 review; circuit breaker
triageNon-prod alerts (F1); masked prod (O)Typed ops.status; free text only through the B10 readercode-ro VM in an amber subnet; situation reports with provenance, never relaying commands found in dataHoldout ≥70%, 0 harmful; no AML
opsOn-callA closed set of named runbooks; a non-LLM apply service validates parametersNo VMOn-call with Entra step-up
Amber arrives as masked non-production reads for investigate from month 6, triage at F1 and masked production at gate O after go-live. B10 is the trust boundary for customer-controlled text (08.6). Tenor is the Norwegian synthetic test population. Source: recommendation §4.1

Models. Opus 5.5 leads implement and investigate, Sonnet 5.5 does intake, verification and review, and Haiku 5.5 classifies (chapter 11).

Deep dive: model pinning, VM profiles and the catalog as code 1 min

Pinning. Model IDs are pinned because unpinned aliases resolve to 4.5 models on Bedrock,1 and fast mode and agent teams are off for bots.

Sandboxes. Four VM profiles cover the types: code (implement, prototype, maintenance), code-ro (investigate; triage in an amber subnet), ro (ask) and research (no repo token, no secrets, no internal network). How a VM starts and what it can reach is in chapter 04.

Catalog as code. Types live in agents/catalog/ and tool profiles in catalog.yaml. A generator emits the formats in use, the Claude Code managed settings and allowedTools, so swapping gateways later means recompiling, not rewriting (decision c38). Adding a type is a T2 change: a catalog entry and profile, a router rule and new router eval cases.

Recommendation

Wall AML off from every general agent. The Anti-Money Laundering Act (hvitvaskingsloven § 28) forbids telling third parties about an investigation, and Finanstilsynet counts colleagues without a need to know as third parties.286 So the bot is not installed in AML channels or those of the money laundering reporting officer (MLRO), and leaves if invited. AML tasks are invisible to non-AML viewers, even as titles or counts. No AML case content reaches any model until a legal opinion settles whether a model provider acts på vegne av (on behalf of) the bank. An AML agent, if ever wanted, gets its own cell: Slack app, gateway, registry and operators.1

Deep dive: hvitvaskingsloven § 28 and Finanstilsynet's reading of it 1 min
Norwegian term

Hvitvaskingsloven § 28 (the Anti-Money Laundering Act) forbids telling the customer or third parties about investigations or reports to Økokrim.28 Finanstilsynet's guidance, Rundskriv 4/2022, reads tredjepersoner (third parties) to include "ansatte … som ikke har behov for slik informasjon" (employees who do not need the information), applies a need-to-know principle "også innad i en juridisk enhet" (also within one legal entity), and covers anything from which someone "vil eller må forstå" (will or must understand) that an investigation is under way.6

08.5

Routing

Rules route; a model may only help, and never on risk. Of the ten steps every message takes, only step 4 is not deterministic code: a language-model classifier that arrives at gate F1 (month 6) once it passes its own eval.

How a message is routed
Every Slack event takes this path. The dashed box and the F1 tag arrive at a later gate; dashed arrows wait for the requester's reply
Router flow A Slack event passes ingress, then a check for control commands that go straight to the registry, then a check for an open task in the thread, where only the requester's or sponsor's messages become run inbox rows and others are offered for adoption. New requests pass deterministic rules, a classifier from gate F1, target resolution, a risk tier that a model may only raise, deduplication and a confidence check with three outcomes, and end in a task with a status card and a routing decision record. Slack event 0 · Ingress verify · drop · DLP · inbox · ack 1 · Control command? YES Registry action !status !stop !why /agents NO 2 · Open task in thread? YES From requester or sponsor? YES run_inbox row queued now · steered from L NO Offer Adopt to the requester; not delivered NO 3 · Deterministic rules verb · channel · linked PR · alert key 4 · LLM classifier Haiku 5.5 · quarantined · no tools F1 5 · Targets services.yaml + CODEOWNERS, not people 6 · Risk tier from paths and data class; an LLM may only raise it 7 · Dedupe join an open task or start new 8 · Confidence Start high confidence Confirm top two medium Ask one question low or unknown AFTER REPLY AFTER REPLY 9 · Task + status card + routing_decision row
Take from this: a message can reach a run only through the requester check in step 2, and the risk tier in step 6 comes from code that a model can push up but never down. Before F1, step 3 hands straight to step 5. Source: recommendation §5.4; internal research note k3.126

Targets and tier are data, not prompts. Targets come from services.yaml and CODEOWNERS and are always teams or services, never individuals: the EU AI Act lists systems that allocate tasks by individual behaviour as high-risk (Annex III, point 4), and the bank designs as if the Act already applied in Norway.30 The tier comes from the changed paths and data class, by the same rules as review-tiers.yml, so a model that misreads "change the ledger posting rule" as low risk cannot make it so (chapter 09).

Deep dive: what the other routing steps do 1 min

Steps 1 and 2 handle everything that is not a new request. Control commands go straight to the registry. A message in a thread with an open task is either a run_inbox row, if it comes from the requester or sponsor, or an offer to adopt it.

Step 3 is a short list of rules: the verb after @agent, the channel binding in channels.yaml (for example, #reg-radar routes to research), a linked PR, or an alert key. Open-Inspect uses the same precedence of rules before any classifier, and its rule is "Ambiguity asks, never guesses".27

Step 4, from F1, is Haiku 5.5 on Bedrock's eu. profile. It returns structured output and has no tools, which makes it a "quarantined" reader: Slack text can sway its answer but cannot make it act. Anthropic's routing guide recommends Haiku 5.5 at low effort for high-volume classification.29

Steps 7 to 9 stop duplicates, ask one question when unsure, and write a routing_decision row that !why shows and the eval set reuses.

Recommendation

Do not turn on the classifier until it passes a router eval: 150-300 labelled requests, 20% held out from prompt authors, and zero risk under-classifications. Borrow the example targets in Anthropic's guide: about 95% routing accuracy, at least 80% on edge cases, rerouting below 10%, and at most a 5-10% accuracy drop for non-primary languages such as Norwegian.29 Re-run it in CI whenever the prompt, model or catalog changes (chapter 13).

The router, registry and tool catalog meet the team's ask for tools and routing (requirement R10) at launch, except ops data, triage and free-text routing, which wait for F1. R10 and the chat-coordination ask (R4) are only partly met at W-tech, by design (08.8).

The team's ask for tools and routing, answered line by line 6 rows
The team's ask for tools and routing (requirement R10), answered
The askThe answerWhen
Bots can see what is runningThe registry, through /agents, !status and status cards; App Home laterLaunch App Home at L
Bots can see GitHubPR and CI status for the coordinator; a short-lived read-only token inside runsLaunch
Bots can see ops dataTyped ops.status; free text only inside requester-bound sessionsF1
Bots help directlyQuestions about running work, a PR or CI are answered from the registry and GitHub status, or by askLaunch
Bots route to the right agentDeterministic routing to implement, investigate or research; triage from F1; free-text classification from F1Launch F1
New agents can be addedA T2 change: catalog entry and profile, router rule, new eval casesLaunch
R10, and the chat-coordination ask (R4), are only partly met at W-tech, by design: steering waits for gate L, and LLM routing, event triggers, triage and ops data wait for F1 (08.8).
08.6

Tools and connectivity

Tools connect to agents by one rule: the credential decides. A tool that needs no credential beyond what the VM holds is a command-line tool plus a skill in the sandbox; one that needs a brokered credential or crosses a trust zone is a Model Context Protocol (MCP) server behind a gateway. Writes are always propose-only, executed by a non-LLM service, and tool output is untrusted data.

Tool catalog excerpt: effect, trust, credential and phase 11 rows
Tool catalog (excerpt)
ToolEffectTrustCredential (holder)Phase
repo.clone, github.read, ci.logs.readreaduntrustedRead-only App token, 15-30 min, no secret-scanning permission (broker → VM)Launch
context.prefetchreaduntrustedLauncher, never inside the VMLaunch
git.publishpropose—Publisher (non-LLM broker)Launch
review.postwrite—review App in the non-LLM posterLaunch
slack.postwrite—Outbox; originating thread only; no unfurlsLaunch
web.fetch / web.searchreaduntrustedQuery-stripping proxy / AgentCore Web SearchLaunch Month 4
registry.readreadrow-level securityCoordinatorGate L
ticket.create (no read)write—Typed LambdaMonth 4
ops.statusreadtyped, greenTyped Lambda over paging and deploy records (coordinator, router, triage)F1
sentry.read, grafana.read (masked non-prod)readamberMasked accounts through AgentCore GatewayMonth 6
run.steer, run.cancel, run.handoffwrite—Registry and session provider, with authorisationF1
ops.status carries incident ID, service, severity and status enums, on-call, and deploy and flag events. It counts as green because its vocabulary is closed. ticket.create exists from month 4, when the ticket system is connected; the coordinator and router get it together with ops.status at F1 (decision c26). Source: recommendation §5.1 and §3.1

No tool gateway until month 6

At launch every agent reads only green data, where a gateway adds a component but no boundary; the boundary is the credential's scope and masking at the source (decision c27).23 The gateway arrives with the first amber source in month 6, and even then vendor flags are not boundaries.

Risk

"Read-only" in a vendor's tool is not read-only for a bank. The GitHub MCP server's read-only mode filters tools, not token permissions, and its secret-scanning tools return the plaintext secret by default.431 AWS's ReadOnlyAccess policy grants secret-bearing reads such as Lambda environment variables.32 So the bank enforces read-only four ways: the injected credential, masking at ingest, the gateway's tool allowlist, and no alternate paths (decision c61). A bypass test suite per server configuration is filed as audit evidence.

Deep dive: the vendor read-only gaps and the four enforcement layers 1 min

The gaps. The GitHub MCP server's lockdown mode is a best-effort content filter. Its secret-scanning tools, labelled read-only, return the plaintext secret unless the caller passes hide_secret: true, and there is no operator switch to force it.431 AWS's ReadOnlyAccess also grants container-registry tokens and Parameter Store values.32

The layers. The injected credential means per-role GitHub Apps without secret-scanning permission and AWS roles built from narrower view-only policies. Masking happens at ingest. The gateway's tool allowlist can also rewrite arguments. And no alternate path may bypass the three.

The tool gateway is Amazon Bedrock AgentCore Gateway with Policy, which authorises each tool call with Cedar policy rules and denies by default. Policy has been generally available only since 3 March 2026,33 so it goes live behind eight controls, each closing a known gap, with the open-source agentgateway as the exit.40

The eight gateway controls, and the gap each one closes 8 rows
Eight controls on the AgentCore gateway
ControlThe gap it closes
Permit-only Cedar with hasTag guardsEvery token claim becomes a string tag,34 and a Cedar policy that errors is skipped, so an erroring "forbid" silently stops protecting35
Mutation restricted by service control policy (SCP)Enforcement can be switched to log-only per engine or policy36 with no dedicated condition key to stop it
Auto-revert on mode changesThe same switch, caught after the fact
5-minute drift hashConfiguration drifting from what was reviewed
supportedVersions in infrastructure as codeSupport for the current MCP version is opt-in; requests without a version header fall back to 2025-03-2637
Interceptor may rewrite arguments onlyA request interceptor can short-circuit policy evaluation38
Masking at sourceResponse filters are a last line, not the boundary
Decision spans to Object Lock, with a gap alarmPolicy decisions appear only as tracing spans, not in gateway logs39
MCP servers are built from source into digest-pinned images, and tool-list hashes are pinned. The custom JSON Web Token (JWT) issuer for agent tokens is unverified; spike S8 tests it, with Amazon Cognito as the fallback. agentgateway is Apache-2.0 licensed (v1.7.0, 27 October 2026).40

Untrusted text comes back typed. Customer-controlled text, such as payment references, names, device strings and tickets, crosses trust boundary B10 only through a quarantined, tool-less reader that returns enums: an attacker can write into a payment reference, but not into an agent's instructions (chapter 03). Free-text operational data (logs, traces, ticket bodies, alert descriptions) is read only inside requester-bound investigate and triage sessions. The coordinator and router see only the registry and GitHub status, plus, from F1, the typed ops.status and the right to create, but not read, tickets (decision c26).

Integrations by phase, from launch to F1 4 rows
Integrations by phase
PhaseIntegrations
LaunchSlack; GitHub Enterprise Cloud (GHE.com, EU); Bedrock through the bank's model gateway; the registry; CodeArtifact and ECR; the evidence store; Entra → IAM Identity Center
Month 4One ticket system; research feeds (chapter 14); AgentCore Web Search in eu-west-1
Month 6Sentry EU and mcp-grafana on masked non-production data, through the gateway
F1The paging and deploy sources behind ops.status
Each integration needs a row in the DORA register of information (RoI) before first use (chapter 10).
08.7

The session registry

The bank keeps its own list of what is running, because no engine or vendor keeps one it can rely on. Lambda durable functions filter executions only by name, a single status, start time and version,41 have no query API,42 and keep history for at most 90 days after completion.43 The research found no call that lists running AgentCore Runtime sessions, and Anthropic's docs for Claude Managed Agents (beta) say its webhooks "aren't a durable log" and advise reconciling by listing.44

So the registry is Aurora PostgreSQL in Stockholm with row-level security (RLS), an exported append-only task_event table, point-in-time recovery and an annual cross-region restore test (decision c24). Engines and providers are reconciled against it, not the other way round, and its change_ref covers human PRs too, so one record follows every change to deployment and incident (chapter 09).

The registry schema sketch, from Slack thread to incident 14 tables
registry · schema sketchrecommendation §5.3
request(id, channel, thread_ts, requester_oid, sponsor_oid, audience_ceiling, created_at)
task(id, request_id, type, tier, data_class, spec_ref, requester_oid, sponsor_oid, owner_team,
     budget_usd, fallback_plan_ref, security_impact, status)
run(id, task_id, attempt, instance_id, image_digest, ami_id, model_ids[], harness_version,
    settings_digest, started_at, ended_at, end_reason, cost_usd, transcript_ref, chain_head)
run_inbox(id, run_id, author_oid, adopted_from_oid, body_ref, kind, delivered_at)
change_ref(id, task_id, pr_number, head_sha, sod_status, proof_status, merged_sha, provenance_ref)
deployment(id, change_ref_id, artefact_digest, environment, release_owner_oid, deployed_at)
incident_link(incident_id, change_ref_id, run_id, legal_hold)
artifact(id, change_ref_id, kind, sha256, producer, provenance, trusted, uri, lock_mode, retain_until)
task_event(id, task_id, at, actor, event, payload_hash)       -- append-only, exported
slack_event_inbox(event_id PK, received_at, claimed_by, done_at)
identity_link(slack_user_id, entra_oid, linked_at, method)    -- kept per §7.5, dual control
routing_decision(...), run_control(...), budget_ledger(...)
Take from this: one chain of keys runs from the Slack thread (request) through each attempt (run) to the merged commit, its deployments and any incident. The inbox table doubles as the Slack acknowledgement record and the work queue.

People reach the registry in stages (decision c29): status cards, /agents and the thread commands at launch; App Home (running, recently finished and blocked work, as in Slack's own layout for agents)45 and registry reads under RLS at gate L; and steer, cancel and handoff tools, each checked against who is asking, at F1.

Insight

Grok Bot's design team rejected dashboards, assignment boards and handoff controls;46 a bank cannot, because DORA needs every change recorded and producible (decision c59). So the registry is queryable, but as a change record, not a performance monitor: no individual rankings, results only for groups of five or more, requesters visible only to participants and the owning team, and AML tasks hidden. Who asked for what is logged only for DORA change evidence, security and running the platform in aggregate, and the data protection impact assessment (DPIA) and consultation with employee representatives come first (chapter 10).1

08.8

Steering, durable waiting and triggers (later)

Launch has no workflow engine, on purpose: runs last at most four hours and never wait for a human inside a process. A reply in the thread starts a follow-up run that resumes from the branch and from a transcript checked against the model gateway's hash chain (unverified until spike S3). The engine and what depends on it arrive through the gates of the roadmap.

  1. Launch · W-tech, weeks 12-13Follow-up runs, !stop, rule-based routing; 3 runs each"Runs each" counts concurrent hosted runs per engineer.
  2. Month 4./x agent attach to a hosted VM; prototype agent; research collectorsInteractive steering of hosted work before background steering exists.
  3. Gate L · month 5!steer, maintenance loops, App Home; 8 runs eachSteering goes through run_inbox, outside any engine; spike S4 must show 0 messages lost or duplicated in 200 injections and a stop within 60 seconds.
  4. Gate F1 · month 6Engine, triggers, LLM router, non-prod triage; 15 runs eachSpike S5 picks the engine: Lambda durable functions if they pass its tests, otherwise Restate. Triage must score at least 70% on a graded holdout with zero harmful outputs, and never decides whether to page anyone.
  5. Gate O · after go-liveMasked production triage; ops runbook proposalsNeeds masking of Norwegian identifiers, an injection corpus and a second-line decision.
Deep dive: steering, the engine choice and the triage pattern 2 min

Steering at gate L. The requester's replies become run_inbox rows, delivered to the running session as Agent SDK streaming input (unverified until spike S4 passes). Maintenance loops run on schedules with hourly caps.

The engine at F1 is chosen by spike S5: Lambda durable functions if they pass its stop-while-waiting and deploy-mid-run tests (its tests T2 and T4), otherwise self-hosted Restate. At F1, steer, cancel and handoff also become tools. Steering stays outside the engine either way, so no "doorbell" callback is needed. The facts that shaped this choice are blunt. Lambda durable functions have no signal, query or update API; outside systems can only complete callbacks an execution created.42 They have no continue-as-new47 and hard caps of 30,000 operations and 100 MB per execution.48 An event-source mapping must never feed one directly: mappings invoke synchronously, cap the execution at 30 minutes and start a new execution on every delivery.49 Restate, by contrast, has signals in its main TypeScript API.50 So the design uses one execution per run (up to 12 hours) and one per approval gate (under 15 days), started by a small Lambda, never one per Slack thread (decisions c18 and c20).23

Triage at F1 follows Anthropic's open-source oncall-kit, a reference implementation that is not maintained: "No auto-mitigation, period", a shadow period first, and holdout replays graded in a fresh context.51 The bank is stricter than the kit on one point: paging stays deterministic, so the agent never decides whether to page anyone.

"Humans answer in hours, so waiting has to be durable."

Armin Ronacher, "The Software Atelier", AI Engineer CODE 2026, slide 13 at 15:0052
Risk

Until F1 the coordinator will feel thin, with no steering before gate L and only rule-based routing, and that invites engineers to reach for unapproved tools. The mitigations: the laptop lane from week 4, ./x agent attach in month 4, device management that blocks unapproved tools, and written triggers that bring the engine forward if 20% or more of runs are stopped to redirect them or waits exceed two hours (chapter 17).

Sources

  1. Internal design document: recommendation for the bank's agentic development environment (§§1.5, 2.1, 2.3, 3, 4, 5, 7.4, 11.3, 13.1, 13.3 and 14). Lead architect, 24 Nov 2026.
  2. Commission Delegated Regulation (EU) 2024/1774 (RTS on ICT risk management), Arts. 17 and 21. EUR-Lex, OJ 25 Jun 2024. eur-lex.europa.eu/legal-content/EN/TXT/HTML
  3. Agents Rule of Two. Meta AI, 31 Oct 2025. ai.meta.com/blog/practical-ai-agent-security
  4. github/github-mcp-server README: toolsets, read-only and lockdown modes (v2.2.0). GitHub, 16 Nov 2026. github.com/github/github-mcp-server
  5. The Events API. Slack Developer Docs, accessed 23 Nov 2026. docs.slack.dev/apis/events-api
  6. Rundskriv 4/2022: Veileder til hvitvaskingsloven. Finanstilsynet, 15 Nov 2022. finanstilsynet.no/nyhetsarkiv/rundskriv/2022/veileder-til-hvi…
  7. Introducing Grok Bot 1.0. SpaceXSI, 11 Nov 2026. x.ai/news/grok-bot-1-0
  8. Projects. Cursor Docs, accessed 23 Nov 2026. cursor.com/docs/agent/projects
  9. Cloud Agents. Cursor Docs, accessed 23 Nov 2026. cursor.com/docs/cloud-agent
  10. Skills and routines. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/skills-routines-and-automations
  11. How Grok Bot works. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/how-grok-bot-works
  12. Use the computer and apps. SpaceXSI Docs, accessed 23 Nov 2026. docs.x.ai/grok-bot/computer-and-apps
  13. 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-act…
  14. Why we built our own background agent (Inspect). Ramp Builders, 12 Jan 2026. builders.ramp.com/post/why-we-built-our-background-agent
  15. Benny automation pack in pstack: README, triage and reproduce-and-fix specs. Lauren Tan on GitHub (cursor/plugins), 21 Nov 2026. github.com/cursor/plugins/tree/main/pstack/automations/benny
  16. Commands Claude Tag understands (public beta). Anthropic, accessed 24 Nov 2026. claude.com/docs/claude-tag/users/commands
  17. chat.startStream method. Slack Developer Docs, accessed 23 Nov 2026. docs.slack.dev/reference/methods/chat.startStream
  18. chat.postMessage method. Slack Developer Docs, accessed 23 Nov 2026. docs.slack.dev/reference/methods/chat.postMessage
  19. Rate limit changes for non-Marketplace apps. Slack Developer Docs changelog, 29 May 2025. docs.slack.dev/changelog/2025/05/29/rate-limit-changes-for-no…
  20. Using Socket Mode. Slack Developer Docs, accessed 23 Nov 2026. docs.slack.dev/apis/events-api/using-socket-mode
  21. Verifying requests from Slack. Slack Developer Docs, accessed 24 Nov 2026. docs.slack.dev/authentication/verifying-requests-from-slack
  22. User object reference. Slack Developer Docs, accessed 24 Nov 2026. docs.slack.dev/reference/objects/user-object
  23. Internal research file: reconciliation of contradictions between the research notes (decisions c18-c29, c38, c59-c61). Research team, 24 Nov 2026.
  24. Get workload access token (security controls for GetWorkloadAccessTokenForUserId). AWS, accessed 24 Nov 2026. docs.aws.amazon.com/bedrock-agentcore/latest/devguide/get-wor…
  25. Claude Tag: How agent identity works (public beta). Anthropic, accessed 24 Nov 2026. claude.com/docs/claude-tag/concepts/agent-identity
  26. Internal research notes gapx-02 (requester-bound agent authorization) and k3 (routing and session registry). Research team, 23-24 Nov 2026.
  27. open-inspect/background-agents: README, HOW_IT_WORKS and Slack integration docs. Open-Inspect on GitHub, 23 Nov 2026. github.com/open-inspect/background-agents
  28. Lov om tiltak mot hvitvasking og terrorfinansiering (hvitvaskingsloven), LOV-2018-06-01-23, §§ 28 and 30. Lovdata, consolidated, accessed 24 Nov 2026. lovdata.no/dokument/NL/lov/2018-06-01-23
  29. Ticket routing (use-case guide). Anthropic, Claude Platform Docs, accessed 24 Nov 2026. platform.claude.com/docs/en/about-claude/use-case-guides/tick…
  30. EU AI Act, Annex III: high-risk AI systems (point 4, employment and workers management). artificialintelligenceact.eu, accessed 23 Nov 2026. artificialintelligenceact.eu/annex/3
  31. github/github-mcp-server pull request #3838: optional secret hiding for secret-scanning tools ("Secret omission is opt-in"). GitHub, 13 Nov 2026. github.com/github/github-mcp-server/pull/3838
  32. ReadOnlyAccess (AWS managed policy). AWS Managed Policy Reference, accessed 24 Nov 2026. docs.aws.amazon.com/aws-managed-policy/latest/reference/ReadO…
  33. Policy in Amazon Bedrock AgentCore is now generally available. AWS What's New, 3 Mar 2026. aws.amazon.com/about-aws/whats-new/2026/03/policy-amazon-bedr…
  34. Principal-scoped policies (AgentCore Policy authoring guide). AWS, accessed 24 Nov 2026. docs.aws.amazon.com/bedrock-agentcore/latest/devguide/example…
  35. Authorization: how Cedar evaluates policies. Cedar Policy Language docs, accessed 24 Nov 2026. docs.cedarpolicy.com/auth/authorization.html
  36. Policy enforcement modes (AgentCore). AWS, accessed 24 Nov 2026. docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy-…
  37. How AgentCore Gateway supports the MCP 2026-07-28 spec. AWS Machine Learning Blog, 28 Jul 2026. aws.amazon.com/blogs/machine-learning/how-agentcore-gateway-s…
  38. Types of interceptors (AgentCore Gateway). AWS, accessed 24 Nov 2026. docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway…
  39. AgentCore Policy observability: metrics and per-decision spans. AWS, accessed 24 Nov 2026. docs.aws.amazon.com/bedrock-agentcore/latest/devguide/observa…
  40. agentgateway (v1.7.0 release; Linux Foundation project). agentgateway on GitHub, 27 Oct 2026. github.com/agentgateway/agentgateway
  41. ListDurableExecutionsByFunction (Lambda API reference). AWS, accessed 24 Nov 2026. docs.aws.amazon.com/lambda/latest/api/API_ListDurableExecutio…
  42. Lambda API reference index: durable execution operations. AWS, accessed 24 Nov 2026. docs.aws.amazon.com/lambda/latest/api/llms.txt
  43. Configure Lambda durable functions (execution history retention). AWS, accessed 24 Nov 2026. docs.aws.amazon.com/lambda/latest/dg/durable-configuration.html
  44. Subscribe to webhooks (Claude Managed Agents, beta). Anthropic, accessed 24 Nov 2026. platform.claude.com/docs/en/managed-agents/webhooks
  45. App Home (Home and Tasks tabs). Slack Developer Docs, accessed 24 Nov 2026. docs.slack.dev/surfaces/app-home
  46. Designing Grok Bot for a world of persistent agents. SpaceXSI, 3 Sep 2026. x.ai/news/designing-grok-bot
  47. aws-durable-execution-sdk-js: durable-context.ts. AWS on GitHub, accessed 24 Nov 2026. github.com/aws/aws-durable-execution-sdk-js/blob/main/package…
  48. Lambda quotas: durable functions. AWS, accessed 24 Nov 2026. docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
  49. Event source mappings with durable functions. AWS, accessed 24 Nov 2026. docs.aws.amazon.com/lambda/latest/dg/durable-invoking-esm.html
  50. Signals and external events (TypeScript SDK). Restate Docs, accessed 24 Nov 2026. docs.restate.dev/develop/ts/external-events
  51. anthropics/oncall-kit: README and eval/replay.md (reference implementation, not maintained). Anthropic on GitHub, 6 Aug 2026. github.com/anthropics/oncall-kit
  52. Build the Workshop Before the Software Factory (talk video; slide 13 at 15:00). Armin Ronacher at AI Engineer CODE 2026, 12 Nov 2026. youtube.com/watch