1. Home
  2. AI governance
  3. Technical deep dive

Technical deep dive

AI governance: use AI at work without leaking data or shipping its bugs

How we let your staff and developers keep the speed of AI tools while keeping control: approved tools, clear rules on what goes into a prompt, least privilege for AI agents, the checks every pull request must pass, and a record you can show a client or auditor.

  • For Business owners, CTOs & IT leads
  • Read 11 min
  • Works with Microsoft 365 Copilot · ChatGPT · Claude · GitHub · GitLab
01 · The problem

Everyone is using AI. Few businesses have rules for it.

Your staff already use AI to write emails, summarise documents and analyse spreadsheets. Your developers ship code that AI assistants and agents wrote. Most of the time nobody has decided which tools are approved, what data may go into them, or how AI-written work is checked.

That creates four kinds of risk:

  • Data leaving the business. Customer records, contracts, financials or source code pasted into personal AI accounts, outside your control and possibly outside Australia.
  • AI tools that can see too much. An assistant connected to your files can find anything the user can open, including documents that were shared too widely years ago.
  • Agents acting on their own. AI agents and automations connected to email, files or cloud accounts, with more access than the job needs.
  • Bugs that look like working code. Invented dependencies, tests that prove nothing, and confident edge-case mistakes that reviewers skim past.

We build with AI every day at DevOpsPlant, and we govern it. The answer isn’t to ban the tools. It is to choose them deliberately, set a few clear rules, enforce them where possible, and keep humans on the decisions that matter.

02 · AI at work

Rules for how your staff use AI

A short, written policy your staff can follow, backed by settings that enforce it:

  • Approved tools on business accounts. A list of the AI tools staff may use, on business plans where your data isn’t used to train the vendor’s models, with sign-in through your identity provider and MFA.
  • What never goes in a prompt. Clear examples by data type: customer personal information, health or financial records, passwords and keys, and anything a contract says must stay in Australia.
  • Where prompts are stored. We check where each tool keeps prompts, files and outputs, and how long, and choose the settings and regions that fit your obligations.
  • Fix sharing before you switch on an assistant. Tools like Microsoft 365 Copilot can find anything a user has access to. We find overshared sites and folders first, so the assistant doesn’t surface them.
  • Unapproved tools. Sign-in and network logs show which AI services staff actually use, so the policy covers reality, not just the approved list.
  • Access that ends when people leave. AI accounts are managed through your identity provider, so leavers lose access with everything else.
03 · Agents

AI agents and automations get least privilege

An AI agent that can read email, change files or call your cloud accounts is a new kind of user. We treat it like one:

  • Its own identity. Every agent or automation has its own account or role, never a person’s login or a shared key.
  • Only the access the job needs. Read-only where possible, limited to the sites, mailboxes or accounts it works on, and no production credentials for coding agents.
  • Approved connections only. A list of the integrations and plugins agents may use, reviewed before anything new is connected.
  • A record of what it did. Agent actions are logged, so you can see what changed and why.
04 · Checks

The checks every pull request must pass

For teams that build software, these run on every pull request, however the code was written. A developer gets the result in minutes, before a reviewer spends any time on it.

CheckWhat it catchesBlocks the merge when
Tests on changed linesNew code with no tests, or tests that don’t exercise itCoverage of the changed lines is below the agreed minimum
Security scanInjection, unsafe deserialisation and other common flawsA new finding at high severity or above
Dependency checkPackages that don’t exist, look-alike names, known vulnerabilities, unapproved licencesA new package isn’t on the approved list
Secret scanningKeys, tokens and passwords in the diffAny secret is found
Change sizePull requests too large to review properlyThe diff passes an agreed size, unless a lead approves the exception

Coverage of the changed lines matters more than overall coverage. A codebase can sit at 70% while the new, AI-written code has no tests at all.

.github/workflows/pr-checks.yml
      # Fail the pull request if the lines it changes are under 80% covered
      - name: Coverage of changed lines
        run: |
          pip install diff-cover
          diff-cover coverage.xml --compare-branch=origin/main --fail-under=80
05 · Review

Humans still approve

AI review tools are useful as a first pass, flagging obvious problems before a person looks. They don’t approve changes.

  • Every merge needs a human approval. Branch protection enforces it, including for changes an agent opens.
  • Sensitive code has named owners. Payments, authentication, infrastructure and the pipeline itself need a reviewer from the owning team.
  • Small pull requests by default. A reviewer can properly check a few hundred lines, not a few thousand.
.github/CODEOWNERS
# Changes here always need a reviewer from the owning team, however the code was written
/src/payments/   @acme/payments-leads
/src/auth/       @acme/security
/infra/          @acme/platform
/.github/        @acme/platform
06 · Release

Assume some bugs will still get through

No set of checks catches everything, so releases are built to limit the damage:

  • Feature flags. New features ship switched off, then turn on for a small group first.
  • Canary releases with automatic rollback. A new version takes a small share of traffic, and rolls back by itself if error rates rise.
  • Fast rollback. Going back is one step, practised, and faster than debugging in production.

The release side is covered in detail in From commit to production in minutes.

07 · Coding tools

Rules for AI coding tools

  • Approved tools. A list of the assistants and agents developers may use, on business accounts with training on your code turned off.
  • What never goes in a prompt. Secrets, customer data and anything under a data residency obligation. This matters most if your data must stay in Australia.
  • Least privilege for coding agents. Agents work in a sandbox or on a branch, with no production credentials, and only the tools and integrations you have approved.
  • A record. Pull requests note when AI did most of the work, so you can see where problems come from.
08 · Measurement

How we prove it’s working

We measure before we change anything, then again after:

MetricWhat it tells you
AI services in use that aren’t approvedWhether staff are using tools outside your control
Overshared sites and foldersWhat an AI assistant could surface to the wrong person
Change failure rateWhat share of releases need a fix or a rollback
Bugs found in productionHow many problems got past every check
Time from pull request to mergeWhether the checks are slowing the team down
09 · Delivery

How we deliver it

StageWhat happensYou get
AssessWe find which AI tools are in use, what data they can reach, and, for software teams, how recent production bugs got throughA short list of risks and fixes, in order of impact, with a price
BuildThe AI use policy, tool settings, sharing clean-up, agent permissions and, where you build software, pipeline checks and review rulesGuardrails that are enforced, not just written down
TuneRules and thresholds adjusted so they stop real problems without blocking good workBefore and after measurements
Hand overRunbooks, a staff briefing and a walkthrough for your developersA policy your team owns, with settings as code where the tools allow
10 · FAQ

Common questions

We don’t build software. Is this still for us?

Yes. The policy, approved tools, prompt rules, sharing clean-up and agent permissions apply to any business whose staff use AI. The pipeline checks only apply if you build software.

Do you stop staff or developers using AI?

No. We help you choose approved tools and set clear rules for them. The goal is to keep the speed and remove the avoidable risk.

We’re about to roll out Microsoft 365 Copilot. Where do we start?

With sharing. Copilot can find anything a user can open, so we find and fix overshared sites, folders and teams first, then switch it on for a pilot group.

Will this slow our developers down?

Not in practice. Checks run automatically in minutes, before anyone reviews the change. We tune thresholds so they block real problems, and we measure time to merge before and after to prove it.

Which AI tools does this work with?

All of them. The policy covers whichever tools you approve, such as Microsoft 365 Copilot, ChatGPT, Claude or Gemini, and the pipeline checks run on the code itself, whether it came from GitHub Copilot, Claude Code, Cursor or a person.

We use GitLab or Azure DevOps. Does that matter?

No. The same checks and review rules work in GitLab CI and Azure Pipelines, using their own branch protection and required-reviewer rules (code owners in GitLab, path-based reviewer policies in Azure Repos).

Start with an assessment

About two weeks, fixed at $3,000 + GST.

We find which AI tools are in use and what data they can reach, and, for software teams, trace how recent production bugs got through.

You get a short list of risks and fixes, in order of impact, and a fixed price to put them in place.

If you go ahead, the assessment fee comes off the build price.

Next step

Tell us which AI tools your team uses

On a 30-minute call we’ll tell you where the biggest risk is, and the first two rules we would put in place.