Operating model
AI Coding Tools in Regulated African Enterprises
The developers are not your employees. The laptops are not yours. Every published playbook assumes otherwise.
Who this is for
Large African enterprises increasingly build their own software without staffing it entirely with employees. Mobile operators, banks and their fintech subsidiaries own the product and the roadmap, and buy the engineering capacity.
The common pattern works like this:
- Vendors supply development teams under commercial engagements.
- Those engineers work on vendor-owned laptops, outside the client's device management.
- They hold access and permissions the client grants them individually, scoped to the project they are assigned to.
- They build applications and APIs inside the client's systems.
- On many engagements they also support those applications in production.
The arrangement is efficient and widespread. It also creates a governance problem that published AI guidance does not address, because the people writing the code are not employees and the machines they write it on do not belong to the enterprise.
If that is how your software gets built, this operating model is written for you. If your developers are employees on managed devices, the existing published playbooks will serve you better.
Why the published guidance does not fit
Every AI-coding governance playbook in circulation rests on four assumptions, and the contractor model breaks all four.
| Assumption in published guidance | Reality in a contractor engagement |
|---|---|
| The developer is an employee bound by internal policy | The developer is a vendor's employee, bound by a commercial contract that is usually silent on AI |
| The device is managed, so tooling can be installed or blocked | The device belongs to the vendor; the client has no management rights and never will |
| One sanctioned tool can be mandated | Each vendor arrives with its own tooling, and renegotiating ten supplier contracts over an IDE is not realistic |
| Identity and audit run through employee accounts | Access is granted per project to non-employees, and the record leaves when the engagement ends |
The practical consequence is that the usual advice — write a policy, approve a tool, read the vendor's audit log — produces a document rather than a control.
The enterprise still carries the regulatory obligation. It is the controller of the data, the licence holder, and the party a regulator will ask. What it does not have is any visibility into which assistant a contractor opened, which model answered, where that model ran, or what was pasted into it.
What the law already requires
Nothing here is new regulation. The obligations below are in force today, and a coding assistant engages them without anyone deciding that it should.
Sending personal data to a foreign AI service is a cross-border transfer. That is the pivotal point, and it follows from the existing instruments rather than from any AI-specific rule.
- Nigeria. The Nigeria Data Protection Act (NDPA) restricts cross-border transfers of personal data by default, permitting them on specified bases. Guidance from NITDA additionally requires government data, and data processed on behalf of government agencies, to be hosted in Nigeria.
- Kenya. The Data Protection Act (DPA 2019) imposes safeguards on cross-border transfers and requires certain sensitive categories to be processed or stored locally.
- South Africa. POPIA s.72 prohibits transfer to a foreign third party unless one of its conditions is met — binding rules, adequate protection, consent or a qualifying contract.
Financial services carry more. The Central Bank of Nigeria requires financial institutions to maintain local data storage and to obtain approval for certain cross-border transfers. Any operator with a mobile-money or payments subsidiary is inside this, and those subsidiaries are usually the ones commissioning the most development.
Automated processing is a named risk area. Where AI informs decisions with significant effect, the expectation under the NDPA is a data protection impact assessment, a documented lawful basis, and records of processing.
None of these three countries imposes blanket data localisation. The rules govern transfer, and documented safeguards can satisfy them, so this is a question of basis and evidence rather than of relocating servers.
Published commentary also conflicts on how far Nigerian localisation extends. Read the primary texts before acting: the NDPA and its guidance, the relevant CBN circulars, POPIA s.72, and Kenya's Data Protection Act regulations.
The infrastructure makes this unavoidable
You cannot resolve the transfer question by keeping the inference local, because for frontier models you currently cannot.
AWS's own documentation shows that in-region inference is not supported in af-south-1 (Cape Town) for its frontier model offerings. They are reachable only through global cross-region routing, and the newer Bedrock endpoint is not offered in that region at all. Accelerator capacity tells the same story from the other side: Azure exposes current-generation GPUs in its South Africa North region, while AWS Cape Town remains on older inference hardware.
The practical result for an enterprise under a transfer restriction:
- Your contractor's assistant calls a frontier model.
- The request leaves the continent, whichever region you nominated.
- It is processed by a provider headquartered in another jurisdiction, which carries its own disclosure exposure.
- You hold the obligation to show a lawful basis for that transfer, and today you have no record that it happened.
This is why the control cannot be a policy document. Every assistant session is a transfer event, and the evidence that it was lawful has to be produced at the moment it occurs. Knowing what was sent, where, by whom and on what basis is not reporting overhead — it is the only way to use these models and remain compliant.
The position will improve as regional capacity arrives. It has not improved yet, and the engagements are running now.
Where control can and cannot live
The contractor model rules out most of the places people instinctively reach for. Work through the candidates in order of what the enterprise actually controls.
| Control point | Who controls it | Viable | Why |
|---|---|---|---|
| The developer's device | The vendor | No | No management rights over a vendor's laptop, and no prospect of getting them |
| Network egress | The vendor or the developer's home ISP | No | Traffic need never transit anything the enterprise operates |
| Vendor's own tooling policy | The vendor | Weak | Depends entirely on a contract term that is usually absent, and on self-reporting |
| The per-project access grant | The enterprise | Yes | Already issued per individual per project; policy and attestation can attach to it |
| The repository and CI boundary | The enterprise | Yes | Code must land in enterprise systems; attestation can be required at that point |
| Model access provisioning | The enterprise, if it chooses | Strongest | See below |
The decisive move is to supply the model access yourself.
If the enterprise provisions approved model access to contractor engineers as part of the project grant, four things follow at once:
- The telemetry is automatic, because the enterprise is the one issuing the credentials.
- It works regardless of which assistant the engineer runs on their laptop, which removes the need to standardise tooling across vendors.
- The enterprise chooses the provider and the region, which is the only way to make a defensible decision about where prompts go.
- The contractor has a positive reason to comply: provided frontier access, at no cost to their employer, instead of a personal subscription.
That last point matters more than it appears. Every control that depends on a contractor choosing restraint will decay. A control that gives them something better than what they had is adopted without enforcement.
You do not need to police an unmanaged endpoint if you are the one handing out the credentials it uses.
The operating model
Eight controls. They are ordered so that the earliest ones do most of the work, and none of them requires authority over a vendor's machine.
1Tier the engagements by data exposure, not by contract value
Two tiers are enough to start.
| Build engagements | Production support engagements | |
|---|---|---|
| What the team touches | Source code, schemas, test fixtures | Live systems, real customer records, transaction data |
| Transfer risk | Moderate and mostly predictable | High and incident-driven |
| Assistant use | Permit with provisioned access and logging | Permit only with provisioned access, and prohibit production data in prompts |
| Where to start | Second | First |
Start with production support. It is where a leak is both most likely and most consequential, because an engineer debugging a live incident at two in the morning will paste whatever is in front of them.
2Provide the model access
Issue approved model access with the project grant. Choose the provider and region deliberately, and record that choice. This is the control that makes the remaining seven cheap.
3Bind the policy to the access grant, not to the person
You already provision permissions per individual per project. Attach the AI terms to the same grant, so they begin and end with the engagement rather than with anyone's memory.
4Name what may never enter a prompt
Be specific, because a general instruction to "be careful" is unenforceable. At minimum: production customer records, subscriber identifiers, transaction data, credentials and keys, and extracts from production logs or databases. State it as a short list in the engagement terms, and repeat it at onboarding.
5Require attestation where code enters your systems
At the pull-request boundary, require the contributor to record whether an assistant was used and which one. It is self-declared and imperfect, and it is still the only record that ties AI involvement to a specific change in a specific repository.
6Log the five fields that make a transfer defensible
For each assistant session under a provisioned credential, retain: the engineer's identity, the project the grant was scoped to, the assistant, the model and provider, and the region the request was served from. Retain for your audit period, not for the engagement.
7Produce the record at offboarding
When an engagement ends, generate the AI record for it before access is revoked. Without this step the trail leaves with the team, which is the single most common failure in this model.
8Put the clause in the supplier contract
Add AI use to the vendor agreement: permitted tooling, the prompt-content prohibitions, use of provisioned access where supplied, and cooperation with audit. Do this last rather than first — contract renegotiation is slow, and the first seven controls do not wait on it.
Ten questions to answer today
If you cannot answer most of these, that is the finding. None of them requires a project to investigate.
- How many contractor engineers currently hold access to our systems, and on which projects?
- Which of those engagements include production support?
- Do we know whether any of them use an AI coding assistant? By what means would we know?
- Whose subscription pays for it — ours, the vendor's, or the individual's?
- Which model providers and which regions have served requests arising from our code?
- If a regulator asked for the lawful basis of those transfers this month, what would we show them?
- Do our supplier agreements say anything at all about AI tooling?
- When an engagement ended last quarter, what record of assistant use remained with us?
- Has anyone internally raised this — risk, compliance, security, or engineering?
- Who owns the answer? If no single function owns it, that is the first thing to fix.
The last two matter most. A technical gap with an owner is a workplan; the same gap without one stays open indefinitely.
The first thirty days
Ordered so that the cheapest and most informative work comes first. None of week one requires budget.
Leave the contract clause for the following quarter. It is the slowest control and the least urgent, because the first seven work without it.
Scope and caveats
This is not legal advice. It is an operating model written from publicly available regulatory texts and vendor documentation. The primary instruments govern, and published commentary conflicts on how far Nigerian localisation extends in particular. Have counsel read the NDPA and its guidance, the applicable CBN circulars, POPIA s.72 and Kenya's Data Protection Act regulations against your own processing before you rely on any of it.
Regional model availability changes. The in-region inference position described above reflects provider documentation at the date on this page. Check it again before you design around it; it is the detail most likely to be out of date.
What this deliberately does not cover. Code quality and review of AI-generated contributions, intellectual property and licensing of generated code, model output bias, employee use of assistants, and AI in production systems rather than in the act of building them. Each deserves its own treatment and none belongs in a document about contractor access.
On the evidence base. The regulatory position is drawn from the instruments named above. The in-region inference and accelerator points come from the cloud providers' own regional availability documentation. The description of the contractor staffing model is drawn from practice in the region and is deliberately generic — no specific enterprise's controls, or absence of controls, is described anywhere in this document.