Topic 5 of 5 · 4 min read
Company policy for AI coding tools
Goal: Review an AI coding tool policy and find the missing clause on licences, data handling or approved tools.
A good AI coding policy says which tools are approved, what may be sent to them, how their output is checked, and who is responsible when something goes wrong. Without one, each engineer decides alone, and the company finds out about the risk from an incident.
Check yourself · 1 of 3
Which clause belongs in an AI coding tool policy?
The clauses to expect
- Approved tools and accounts. Name the tools (for example Copilot, Cursor, Claude Code, an in-house model) and require company accounts, not personal ones. A personal account may have different data terms.
- What may be sent. Say what code and data can go to a model: public code, internal code, customer data, secrets. Secrets and personal data should never be pasted into a prompt.
- Data retention and training. For each approved tool, record whether prompts and code are stored, for how long, and whether they are used to train models. Prefer the plan where training on your data is off, and set it in the admin console.
- Output checking. Generated code goes through the same review and tests as any code, plus a licence scan and a check for large copied blocks.
- Licences. List allowed, review-needed and denied licences by SPDX name, and say who approves exceptions.
- IP and indemnity. Note what the vendor's contract promises about claims over generated output and any conditions, such as keeping the vendor's filter on. Read the contract. Do not assume.
- Records. Say how AI-assisted changes are marked and where scan reports are kept.
- Ownership and exceptions. One named owner, a review date, and a way to ask for an exception.
Reviewing a policy
Read it against the list. For each clause ask: is it specific enough to follow on a Monday morning? "Use AI responsibly" is not a rule. "Do not paste customer records or API keys into any model" is.
Before and after
Weak clause: "Engineers should be careful with licences." Better: "Every pull request runs a licence scan. Packages under AGPL or unknown licences are denied. LGPL and MPL need approval from the engineering lead before merge."
What goes wrong
- Missing the data clause. Source code or customer data goes to a tool nobody checked.
- Rules nobody can check. A policy with no scan or review step is a wish.
- Out of date. Tools change their terms, so a policy without an owner and a review date goes stale.
- Personal accounts. Work code sent through a free personal plan may fall under weaker terms.
Examples
A policy with a gap
1. Use only Copilot Business or Claude Code (company accounts).
2. Never paste secrets or customer data into a prompt.
3. All AI-written code is reviewed like any other code.
4. Training on company code is switched off in admin settings.
The gap: nothing about licences. No scan step, no allowed or denied list, no approver. Add a clause such as "Pull requests run a licence scan; AGPL and unknown licences are denied; LGPL and MPL need lead approval."
Vague versus specific
Vague: "Be careful with sensitive code."
Specific: "Code from the payments repo and any file listed in RESTRICTED.md may not be sent to any external model. Other internal code may go to approved tools on company accounts only."
The second can be checked and enforced.
Key points
- A policy names approved tools and requires company accounts, not personal ones.
- It states exactly what may and may not be sent to a model, with secrets and personal data always excluded.
- Retention and training terms are recorded per tool, and training on company data is switched off where possible.
- Licence rules use SPDX names and name who approves exceptions.
- Clauses must be specific enough to follow, with an owner and a review date.
Common mistakes
- Writing general advice such as "use AI responsibly" instead of checkable rules.
- Allowing personal accounts without checking their data terms.
- Leaving out a licence clause, so nobody owns the scan and the deny list.
- Assuming vendor indemnity applies without reading its conditions.
Check yourself · 2 of 3
A policy says only "Engineers should use AI responsibly." What is wrong with it?
Check yourself · 3 of 3
A policy covers approved tools, secrets, and code review, but nothing on licences. Which clause fixes the gap?
Practice items, not counted towards your mastery.
Start here
- Choose a License (opens in a new tab)ArticleFree
Plain summaries of what each common licence permits, requires and forbids.
- SPDX License List (opens in a new tab)DocsFree
The standard short identifiers (MIT, Apache-2.0, GPL-3.0-only) used in headers, manifests and scanners.
- OSI Approved Licenses (Open Source Initiative) (opens in a new tab)DocsFree
The reference list of licences that meet the open source definition, with full texts.