Case study · Engineering leadership

Faster, not looser: adopting AI coding agents and automated review at a Kenyan fintech scale-up

A Nairobi fintech scale-up processing mobile money and card payments wanted the speed AI coding tools promised. Engineers were already using them unofficially. Review queues were the bottleneck, and new tools offered agents that review, fix and even approve pull requests. The goal was to adopt them deliberately: more throughput on routine work, tighter control on the code that moves money.

Case studyFintech · KenyaSumanta Mukhopadhyay9 min read
#leadership#ai#fintech
CASE STUDY · CASE STUDY · ENGINEERING LEADERSHIP27 Nov 2026 · 15:50 GST
At a glance
SectorFintech · Kenya
My roleFractional CTO
EngagementEngineering operating model, tooling governance and delivery leadership
ScopeAI coding policy, risk-tiered review, code ownership, automated approvals, metrics, security and audit evidence
What changed
  • AI tools used openly under one policy instead of unofficially
  • Review effort concentrated on payments, identity and data handling code
  • Routine changes moving faster through automated review
  • Every merge traceable to the human or agent that approved it
  • Delivery and stability measured before and after, not assumed
AI coding assistantsAI code review agentsRepository rulesetsCODEOWNERSPolicy files in repositoriesCI with security scanningEngineering metricsAudit log export

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

A Nairobi-based fintech scale-up built payment and lending products on top of mobile money and card rails. Its engineering team had grown quickly, and code review had become the bottleneck: senior engineers spent much of their week reviewing, and simple changes waited days. Engineers were already using AI coding assistants on their own accounts, with no agreed rules on what code or data could be shared with them.

Leadership wanted the productivity, but the products moved customers' money and handled personal data, and bank and mobile money partners expected evidence of a controlled development process. Unreviewed or poorly reviewed changes to payments code were the risk nobody could accept.

Why now. In November 2026 Anthropic launched Claude Ship, a set of agents for GitHub pull requests: code review, an agent that fixes failing checks and conflicts, and an approvals agent that can approve routine changes when a policy file in the repository allows it1. Coverage noted Anthropic's warning that it may miss bugs or security issues2. Tools that can approve code changed the question from "should we use AI to write code?" to "who is allowed to say yes?".

What had to be true

  • One policy for AI tools: which tools, which repositories, what data may be shared.
  • Review effort matched to risk: humans on code that moves money, agents on routine change.
  • Approval rules in the repository, versioned and reviewed like code.
  • A complete trail for every merge: reviewer, approver, checks, policy.
  • Evidence, not belief: delivery and stability measured before and after.

Architecture

Authoring
AI coding assistantsapproved tools, company accountsEngineersown the change
Review
AI review agentsevery pull requestFix agentfailing checks, conflictsHuman reviewersby risk tier
Policy
Risk tiers by pathpayments, identity, data, routineCode ownersrequired approvers per pathApproval policy filewhat agents may approve
Gates
Repository rulesetsrequired checks and reviewsSecurity scanningsecrets, dependencies, codeMerge queuetested before merge
Evidence
Audit log exportwho approved whatDelivery metricsthroughput and stabilityTrial comparisonsagent versus human findings
Agents add review capacity everywhere; policy decides where humans must still say yes.

The data flow, end to end

  1. OpenAn engineer opens a pull request, often written with AI help
  2. ReviewAI review agents comment; a fix agent resolves failing checks
  3. ClassifyChanged paths decide the risk tier and required approvers
  4. ApproveRoutine tier: agent may approve under policy. Other tiers: named human owners
  5. GateRulesets enforce checks, scans and the merge queue
  6. RecordThe merge, approvals and policy version go to the audit trail
Every change gets AI review; only routine changes can get AI approval.

The hard part: deciding who may say yes

The team's first instinct was to argue about whether AI review was good enough. The more useful question was where any reviewer's approval should be sufficient. The answer was a risk tier for every path in the main repositories: payments and ledger code, identity and access, personal data handling and infrastructure were high risk; internal tools, documentation, copy and test-only changes were routine.

Code ownership made the tiers enforceable. GitHub's code owners feature assigns owners to paths, and repository rules can require their review before merging3, with rulesets applying required reviews and status checks consistently across branches4. High-risk paths named human owners; routine paths allowed an agent approval when the approval policy file permitted it, and that policy file was itself owned by the engineering leadership group.

File view showing a tooltip that the file is owned by a named reviewers team, from a specific line of the CODEOWNERS file
Every file knows its owner: code ownership is what turns a risk policy into a merge rule. Source: GitHub Docs · CC BY 4.0

The approval policy file is the most important file in the repository. Whoever can edit it decides what agents may merge, so it needs the strictest owners of all.

The rollout followed the team's existing AI coding policy work, set out in AI coding policy for engineering teams, and agent credentials followed the lessons in coding agents and secrets and the agent-framework compromise: agents ran with scoped tokens and never with deployment credentials.

How it ran

Engineering leadership
  1. AI tool policy
  2. Risk tiers and owners
  3. Approval policy file
Platform and security
  1. Company accounts for tools
  2. Rulesets, scans and merge queue
  3. Audit log export
Product teams
  1. Use agents on every pull request
  2. Flag false positives and misses
  3. Own approvals on their paths
Leadership set the rules, platform enforced them, product teams used and challenged them.
Phase 1Baseline
  • Delivery and stability metrics
  • AI tool inventory
  • One policy
Phase 2Review
  • AI review on all pull requests
  • Fix agent for checks
  • Compare with human reviews
Phase 3Tier
  • Risk tiers by path
  • Code owners
  • Rulesets
Phase 4Approve
  • Agent approvals in observation mode
  • Then on routine paths only
  • Review the policy regularly
Measure first, add review capacity, then carefully hand over routine approvals.

Key decisions and trade-offs

DecisionAlternativeWhy
Company accounts for AI toolsLet engineers use personal toolsControl over data shared and a record of use
Risk tiers by pathSame review rules for all codeSpends senior attention where losses happen
Agent approval only on routine pathsNo agent approvals at allCaptures most of the speed gain with little risk
Observation mode firstTurn approvals on immediatelyEvidence of agent judgement before trusting it
Measure stability alongside throughputMeasure pull requests mergedFaster merging that breaks production is not faster

What I'd do again, and differently

Again: start with risk tiers and ownership; once those existed, every tool decision became easier, and it improved human review too. Differently: involve partner banks' and mobile money providers' assurance teams earlier. They cared less about which AI tool was used than about whether approvals on payment code were traceable, and showing them the audit trail early would have saved a round of questions. DORA's research on software delivery performance gave a shared vocabulary for measuring the change5; see DORA metrics for AI-assisted engineering.

If you lead engineering at a fintech in Africa or beyond, see my regional work, or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
  4. 4
    About rulesetsGitHub Docs
  5. 5
FAQ

Common questions

Should AI agents be allowed to approve code?

Only for changes that are low risk by definition, such as documentation, dependency patches with passing tests or copy changes, and only where a policy file states this explicitly. Code that moves money, handles identity or touches personal data should always need a human owner's approval.

How do you stop AI review becoming a rubber stamp?

Keep humans accountable for high-risk paths through code ownership rules, compare agent findings with human reviews during a trial period, and measure change failure rate and recovery time alongside throughput.

What evidence do auditors and partners need?

For each merge: who or what reviewed it, who approved it, which checks ran and which policy allowed it. Repository rules, code owners and exported audit logs together provide that trail.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.