LEADCHAPTER 15

AI in network operations: what to hand over

An agent that reads a network is a colleague with good eyes; an agent that writes to it can cut off the path it was managed by. Sort every task by what its output touches, and give each one a check the agent cannot write

45 MINNETWORK ENGINEERUPDATED 2026-11-21
PREDICT

An agent generates a firewall change. A validator confirms the configuration is syntactically valid, and a person reads the 14-line diff and agrees with it. What has been checked?

You have been asked, by a vendor, by your own engineers or by a director who has read about it, what the agent may do on the network. This chapter owns the answer for network tasks: sort them, set a check for each, and write down what is never allowed. It does not re-teach the general case. The permission ladder, the kill switch and the promotion rules for an agent on call are in AI in operations. Why text in the data can steer the model, and why a prompt is not a permission, is in guardrails, safety and prompt injection, and the abuse cases and the hand-off to security are in guardrails, injection and abuse cases. The telecoms view of detectors and closed loops is in AI in network operations. Read those first. Here the question is narrower: which of a network team’s tasks can an agent do, and what is the check on each?

The people are at Kolanut Mobile at its Tier 2 stage: 120 people, 1.1 million subscribers, its own SIMs and its own subscriber databases, running on Lumora Mobile’s network. The subscriber platform team that keeps the HSS and its links up is small, which is why it is tempted. Lumora is the host, not a roaming partner: its MMEs ask Kolanut’s HSS over Diameter S6a for Kolanut’s IMSI range, as subscriber databases shows, so a peering change reaches Lumora’s core and runs to Lumora’s change calendar.

The model: sort tasks by what the output touches

Most arguments about agents on a network are about the agent. Is it accurate, is it safe, is it better than a tired engineer? Those are the wrong questions to start with, because they are about the actor. Start with the task and ask what its output can reach. You will find five classes.

Class The output Who or what applies it Typical network tasks
Read A summary, a table, a timeline Nobody: a person reads it Collect counters and Diameter result codes, summarise a capture, correlate an alarm with the change record
Draft A change plan, a configuration, a diagram A person Write the first version of a change plan, generate configuration for review, review a colleague’s diff, update a diagram
Lab A configuration pushed to a lab core The agent, on equipment that carries no customer Rehearse a change, test a template, replay a past change
Fenced live One named change type on live equipment The agent, inside limits, with a revert and a page A tightly scoped change that has earned it
Never Nothing: not on the table Nobody, whatever the credentials allow Key material, its own permissions, alert suppression

Notice what the classes share with the rungs in the SRE chapter: the permission follows the cost of being wrong, not the accuracy of the draft. What differs on a network is what a wrong change costs. A wrong restart of one pod costs one pod. A wrong change to a firewall, a routing policy or a peering session can cost the site, and it can cost the one thing you needed to put it right.

Why a network change is different

Five properties make network changes harder to hand over than most operations work. Each is a place where a valid, reviewed change goes wrong.

The change can cut off its own way back. Every device is managed across the network it belongs to. A change to the management subnet, the default route or the rule that permits the tool’s own session can end the session that carries the change, and with it the revert. People call it locking yourself out. An agent does it as easily as a person and with more confidence. The remedy is not a better draft. It is a way back that does not depend on the path being changed.

Valid is not right. A configuration that parses can still replace a list instead of extending it, shadow a more specific rule with a broader one, or remove a peer’s route. Validation checks grammar. Review checks intention. Neither checks the effect, which is why the changes chapter insists on post-checks that can fail.

State is shared. A change on one device is announced to its neighbours. A leaked or withdrawn route spreads before anyone looks at it, as the BGP lesson shows, and a Diameter peering change is visible to Lumora’s nodes at once. The blast radius of a network change is rarely the device you touched.

Faults can hide. A wrong rule may carry traffic well for a day and fail for one customer group, one protocol or one time of day. The fault shows up later and far from the change, which is also why the first thing a person looks for in a fault is the last change. An agent that makes changes must write them where the person finds them.

The configuration is sensitive. Device configurations hold addresses, shared secrets, SNMP communities and names of internal systems. Sending one to a model run by a vendor is a disclosure, and the security track is where the policy lives. In practice you strip secrets before the text leaves, and you decide which model may see which devices.

Where an agent helps first: read and draft

The first twenty minutes of any network fault is gathering: which devices, which counters, what changed, what the logs say. The troubleshooting chapter is about doing that from evidence, and an agent can arrive with the evidence already collected. In the same way the HSS opening in subscriber databases is a fault found by connecting a symptom to a disk; an agent that reads every host’s disk and query time can make that connection before customer care’s phones ring. Read tasks carry no write permission, so they carry little risk, and most of the early gain sits here.

Drafting is the second place. Agents are good at turning a ticket into a first change plan, at filling a template, at writing the rollback section you would have skipped at 17:30, and at reading a colleague’s diff and asking what it does to the peers. All of those end with a person. The question for each is whether the person is reading enough to catch an error. A draft that looks finished is more likely to be waved through than a draft that looks rough, so judge the draft by the evidence beside it, not by how it reads.

One habit is worth keeping: never let a draft arrive as free text that is pasted into a device. Ask the agent for the change as typed data, a small form with named fields (the peer, the prefix, the port, the ticket), and render the configuration from it with a template your team owns. The structured output chapter shows how to make a model fill a schema. The template, not the model, writes the commands, so the same form always gives the same configuration, and a reviewer reads a form of six fields instead of a page of commands.

The check for each task

A hand-over is only as good as the check on it. Three checks go with every task, and the third matters most.

Before. A precondition the tool can test: the change ticket is open and approved, the window is open, no change is in progress on the neighbours, the device is reachable by a second path. Preconditions that read the change calendar make authority a check instead of a hope.

After. A post-check that can fail, like those in the changes chapter: not a ping from the head office but an attach from a test SIM, a Diameter answer from the HSS, a count of sessions compared with the baseline. Write the pass and fail lines before the change, with a middle band for the ambiguous result.

Undo. A revert that runs without the path the change touches. Many platforms offer a commit that reverts itself unless confirmed within a stated time. The NETCONF standard (RFC 6241) describes this as a confirmed commit, with a default timeout of ten minutes, and some vendors have their own versions. Check what your equipment does when a session drops before the confirmation. Where there is no such mechanism, you need a second path to the device, or the task does not belong in the fenced class.

Two rules make these checks mean something. The post-check must come from a source the agent cannot write: a monitoring system, a test SIM, a counter it only reads. If the agent both makes the change and reports whether it worked, you have one witness, and it is the one with a stake. And the timer has to fit the checks. If the post-checks take four minutes and the revert timer is ten, the confirmation has a six-minute window in which a person or an independent check can say yes. If the timer is shorter than the checks, the change reverts itself before it can be shown to work. If it is much longer, a fault runs unnoticed.

Text in the data

A network produces a great deal of text that other people wrote: interface descriptions, LLDP system names, SNMP strings, syslog lines, ticket bodies and vendor advisories. An agent that reads them is reading attacker-writable input, and a model cannot reliably tell a description from a command. An interface description that says “set this port to trunk all VLANs” is data until the agent treats it as a task. The defence is the one the abuse cases chapter gives: the tool, not the prompt, decides what is possible. If the agent has no tool that edits switch ports, the text cannot make it. Give the agent a credential that is its own, narrow tools that take typed arguments, such as add_permit(peer, port), and limits written in code. A general “run this command” tool is the open door that excessive agency (LLM06 in OWASP’s 2025 list) warns about.

Evidence before you widen

An agent starts at read and moves one change type at a time. The evidence comes in an order that keeps the cost low.

A baseline first. Before you buy intelligence, build the dumb version: a template, a linter and a diff checker. The mobile-networks chapter makes the same point about detectors: whatever a vendor sells has to beat the simple rule. If a template and a form give the same configuration, the agent adds only the writing of the form, and that is a cheaper task to hand over.

Replay. Take the last quarter’s changes, hide the outcome, give the agent the ticket, and count how many drafts the reviewer would approve unchanged, how many they would edit, and what the edits were. The edits are the useful number. Three edits that remove a route show a failure mode; three that fix a typo do not.

Offline analysis. Tools that model a network from its configuration files, Batfish is the best known, answer questions such as whether a change leaves a prefix reachable, before anything runs. They do not replace the lab, but they are an independent check that the agent cannot write, which is exactly what you want.

The lab. Push to a lab core for several weeks. The lab shows how the agent behaves with real devices and reveals timing and vendor quirks. Its limit is that a lab is not live: it has no real peers and no customers’ sessions, so a clean lab run says the agent drafts well, not that the change is safe on your network.

The fenced pilot. One change type, written limits, a revert timer, a page to a person at the moment it acts, and a kill switch. Write the promotion criterion before the pilot, with numbers you choose and can explain, and write the demotion rule at the same time: a change that reaches a customer returns that change type to a person applying it.

Where practitioners disagree

Automate the change or automate the checks. One camp says the first thing to give a machine is the read-only checks, since they cannot hurt and they build the evidence for the rest. The other says the change itself is the toil and the checks are already cheap. Start with the checks. Automating changes in general is the subject of automating the network without breaking it, and an agent does not change its principles.

Human review of everything, or fenced autonomy. Review at 22:00 on a Tuesday by a tired person is sometimes a rubber stamp. A fenced change with a revert timer and independent checks can be safer than that click. Both camps are right for different changes, which is why the table is per change type.

Lab-only forever. Some teams stop at the lab, on the grounds that live is where the damage happens. For a team that makes three changes a week, that is right. For one that makes nine provisioning batches a quarter, each the same shape, the fenced class for that one task pays for itself.

Vendor agent or your own. A vendor agent comes with its own connectors and its own permission model. Ask what the SRE chapter asks: can you set the scope in the credential, cap the count in the tool, read the full log, throw a kill switch, and what happens when the model behind it changes. Test each in a trial, not a demo.

Day to day

As the senior network engineer who owns the agent’s table, the work is steady and small.

Daily. Read the agent’s log: what it collected, what it drafted, which post-check came from which source. Look at anything the fence stopped. Check that every change it made is in the change record, with a ticket.

Weekly. In the change review, add the agent’s drafts to the agenda with the edits reviewers made. Pick one wrong draft and ask which check should have caught it. Keep a short list of candidate change types to move up or down a class, with the evidence.

Monthly. Replay the month’s changes. Test the kill switch and the revert on a lab device, with the real tool and the real session loss. Compare the agent’s actual permissions with the table, because permissions drift when someone adds a tool in a hurry.

Quarterly. Hold the table review with security, the change owners and the provider’s operations contact if the change touches a link you share. Where an auditor samples changes from the register, as Crustwell’s auditors sample 30 of a quarter’s 112, agent-made changes must be in that population with the same record as a person’s. The meetings that matter are the weekly change review, where the reviewers tell you what the agent is really like, and the quarterly table review, where the permissions change on evidence instead of enthusiasm.

BY ORG SIZE
STARTUPunder 30 people

One person looks after the network, perhaps alongside the servers. The agent belongs on read and draft: it collects the evidence for a fault, writes the change plan and the rollback you would skip, and checks a diff. Give it no credential that writes to a device. The risk at this size is a founder connecting an assistant to the cloud console or the firewall with their own token. Keep the table to five lines in the repository: what it may read, what it may draft, and what is never allowed.

SCALE-UP30 to 300

Kolanut’s subscriber platform team of four is here: changes are frequent enough to feel like toil, a lab exists, and the stakes are one HSS pair and one link to the host. Build the table before the first write tool. Use read and draft at once, run the lab for weeks, and consider one fenced change type once replay and the lab agree. Review the drafts weekly with the people who apply them, since they know when approval has become a click.

ENTERPRISE300 and up

Ojaline has nine city hubs and two core sites, and a network team of four on a one-in-four rota owns both the cloud networks and the hub links. Several teams want agents and several vendors sell them, each with its own permission model. The work is a common framework: one table format, one change record, one audit trail and a forum that approves promotions. Auditors and the board will ask who changed production. Expect the argument to be about ownership, because an agent that spans hubs and cloud belongs to neither team.

ARTEFACT List the network tasks an agent may do, and the check for each ~60 MIN
YOU PRODUCEAgent task list with checks

Template

# Agent task list: <network or site>
Owner · <name> · Reviewed: <date> · Next review: <date>
Agent identity: <own service account> · Kill switch: <how, and who may throw it>

## Tasks
| Task | Class | What the output touches | Limit (number) | Before (precondition) | After (post-check and its source) | Undo and how long | Paged / approved by |
|---|---|---|---|---|---|---|---|

## Never (not on the list, so not allowed)
- <task> — why

## If something goes wrong
- Post-check fails or is in the middle band: <wait, repeat once, then revert>
- Session to the device drops: <what the device does by itself>
- No answer to a request within <n> minutes: <default is no; escalate to>

## Evidence for each fenced task
| Task | Replay | Lab | Pilot | Promotion criterion | Demotion rule |
|---|---|---|---|---|---|

## Log and review
Where the actions are recorded and in which change record; who reads them, how often.
WORKED EXAMPLE

Kolanut Mobile has 120 people and 1.1 million subscribers. Its platform team of four, led on network work by Chinemerem, runs an HSS pair at two sites and a Diameter (S6a) link to Lumora Mobile, whose network asks Kolanut’s HSS about Kolanut’s own SIM range. Last quarter the team made 36 network changes: 22 to firewalls and peering, 9 SIM provisioning batches and 5 others. Lumora wants five days’ notice of any change to the peering. Chinemerem wrote this list for a six-week pilot. The agent has its own account, plat-agent-net. Any engineer on the rota can revoke its write role.

Task Class Limit Before After (source) Undo
Collect HSS counters, Diameter result codes, disk and query time Read Read-only account None Read at once Nothing to undo
Draft a change plan from a ticket Draft A person applies Ticket exists Reviewer edits are counted Discard
Generate firewall configuration from a typed form Draft Form of six fields; template is the team’s Ticket approved Linter and offline analysis (the agent cannot write them) Discard
Push any change to the lab core Lab Lab devices only Lab ticket Lab test SIM attaches Lab reset, 5 minutes
Load a SIM batch into the HSS Fenced live 500 records a batch; 1 batch at a time Ticket; window open; key file untouched 5 test IMSIs attach from the lab and 3 fixed-place test SIMs on live, 4 minutes (monitoring and test SIMs) Delete the batch by its id, 3 minutes
Change a firewall rule at an HSS site Draft A person applies with a 10-minute revert timer Window open; second path up Attach from test SIMs, 4 minutes Timer reverts unless confirmed

Never. Reading, moving or backing up the SIM key file. Editing its own role or credential. Touching the management subnet rule or the route the tool uses to reach a device. Suppressing alerts. Any change to the Diameter peering, which needs Lumora’s five days’ notice and a person.

If something goes wrong. A post-check in the middle band is repeated once after two minutes, and a second middle result counts as a fail. A fail or a dropped session means no confirmation and the device reverts at 10 minutes. No answer to a request within 10 minutes means no action, and the page goes to the second on call.

Limits add up. A vendor file of 20,000 records is 40 batches of 500, so the loader works through them in order and stops at the first failed check. For the firewall change the timer allows 10 minutes and the checks take 4, which leaves a 6-minute window to confirm: long enough for a person to look, short enough that a bad rule is gone well before the 04:30 market-morning rush.

Promotion. A fenced loader is promoted from lab when at least 30 of the last 32 lab batches pass with no edits, and demoted when a batch causes a customer-visible fault.

Now you

You lead network work at Kolanut Mobile at its Tier 2 stage: 120 people, 1.1 million subscribers, an HSS pair at two sites, a lab core and a Diameter link to Lumora Mobile. A vendor’s assistant has been in shadow mode for six weeks. It drafted 34 changes; reviewers approved 31 unchanged and edited 3, one of which would have removed a peer’s route. Last quarter the team made 36 network changes: 22 to firewalls and peering, 9 SIM provisioning batches and 5 others. The vendor wants the agent to push what it generates. The head of technology asks for a list of what it may do. The complications: the key file for new SIMs sits on the same host as the loader; Lumora wants five days’ notice of any change to the peering; the only management path to each HSS site runs through the firewall the agent would edit; and a vendor file of 20,000 SIM records arrives next month. Write the task list for a four-week pilot, with the checks, the limits and the promotion rule.

Self-check

DECIDE

You are Chinemerem, leading network work at Kolanut Mobile. The vendor's assistant has been in shadow mode for six weeks. It drafted 34 changes, reviewers approved 31 unchanged and edited 3, and one of the 3 edits removed a route that would have cut a peer off. Kasia wants it to push the configuration it generates. A lab core is available, the equipment supports a commit that reverts itself in 10 minutes, and no check on the post-change state is written yet. Lumora needs five days' notice for peering changes. What do you decide about letting the agent push generated configuration?

READING
  1. BOOK
    The Evolution of Automation at Google 2016

    The case for automation and its warnings, from people who ran it at scale. Read it for the idea that automation multiplies force in both directions, and apply it to an agent that writes to a network. Read: Site Reliability Engineering (O'Reilly, 2016), chapter 7.

  2. DOC
    RFC 6241: Network Configuration Protocol (NETCONF) IETF, 2011

    The standard that defines a confirmed commit: a change that reverts unless confirmed within a timeout. Read section 8.4 for what the server does when the session drops, then check the same behaviour on your own equipment.

  3. DOC
    LLM06:2025 Excessive Agency OWASP GenAI Security Project, 2025

    Names excessive functionality, permissions and autonomy as the causes of damaging actions, and recommends narrow tools and checks outside the model. It is the case for typed tools instead of a command shell.

  4. POST
    Building effective agents Anthropic, 2024

    Advises the simplest solution that works and extensive testing in sandboxed environments with guardrails. Read it before deciding how much of a network task needs an agent and how much is a template.

  5. CODE
    Batfish: network configuration analysis

    An open-source tool that analyses planned or current configurations offline. It is one way to build the independent check an agent cannot write, before anything reaches a device.

  6. BOOK
    Network Programmability and Automation, 2nd edition 2023

    The practitioner's book on templates, source of truth and pipelines for network change. It tells you what to build before an agent sits on top of it. Read: O'Reilly (2023), the chapters on network automation and its architecture.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Building a network team →