2026-11-26 15:48 UTC

Microsoft details a layered agent architecture (identity, tool, mutation, time boundaries) for autonomous network incident response in production, establishing a reference pattern for governed agent operations.

state: watchingheat: lowuncertainty: mediummicrosoft agentic-operations network-incident-response agent-governanceMicrosoftArun Malik

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1082h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-12 13:00⭐ origin echo-reconstructedOriginal first-party Microsoft post, no upstream source. Opens: "It's 2:00 am. A pager goes off... We built an AI agent to do that reconstru
Microsoft (by Arun Malik, Principal Software Engineer, Azure Networking) on blog (echo) · attributed from hn.story.50074416
—
10-13 16:30first on hacker news · published · +27.5hAgentic AI for network incident response
lisajaloza
—
10-20 09:42first on r/artificial · published · +188.7hMicrosoft and Sumsub treat AI agents as insider threats, forcing zero-trust controls
VectorWireAI
—
10-13 16:30amplified on hacker newshn.story.50074416
lisajaloza
peak 1 · 0 comments · 19% of case engagement
10-20 09:42amplified on r/artificial 👑reddit.post.1xanr5c
VectorWireAI
peak 5 · 3 comments · 82% of case engagement
10-13 17:20our radar first saw it · +28.4hdiscovery anchor: hn.story.50074416—

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnAgentic AI for network incident response
Retrieved article excerpt

Open article · Retrieved 2026-10-13T17:31:44.678207+00:00

[Deep Dive](https://commandline.microsoft.com/?type=Deep%20Dive)

Share

[in](https://commandline.microsoft.com/ai-agent-copilot-autopilot-layered-model-production-network-incidents-on-call-engineers/ "Share on LinkedIn")
[r](https://commandline.microsoft.com/ai-agent-copilot-autopilot-layered-model-production-network-incidents-on-call-engineers/ "Share on Reddit")
[x](https://commandline.microsoft.com/ai-agent-copilot-autopilot-layered-model-production-network-incidents-on-call-engineers/ "Share on X")
[f](https://commandline.microsoft.com/ai-agent-copilot-autopilot-layered-model-production-network-incidents-on-call-engineers/ "Share on Facebook")

Copilot to autopilot: Why no single safeguard is enough

# Copilot to autopilot: Why no single safeguard is enough

We designed a layered model that lets an AI agent resolve production network incidents on its own within defined identity, authorization, tooling, and human-approval boundaries.

By [Arun Malik](https://commandline.microsoft.com/author/arun-malik)Principal Software Engineer, Azure Networking, Microsoft

2026.10.13

It’s 2:00 am. A pager goes off. A link somewhere in a datacenter has started flapping, a handful of alarms have correlated into one incident, and the on-call engineer is now doing what on-call engineers have always done: opening five tabs, one per system, and reconstructing what happened from fragments.

We built an AI agent to do that reconstruction. It works. It pulls the device state, reads the telemetry, correlates the recent changes, classifies the failure, and writes a clean summary into the incident before the human has finished logging in. It also knows the fix.

And that is where the demo stops being a demo.

Because the agent “knows the fix,” the question is whether the system should allow it to shut a BGP session on a device that’s carrying live customer traffic. A “read” is something you can double-check. A “write” is an action that already happened. The moment an agent can change production, every property you were relaxed about at the read stage becomes a potential source of customer impact and risk.

> >
> Safe autonomy requires a stack.

This post is about what we learned building an agent that’s trusted to take that action, as well as the uncomfortable conclusion we kept arriving at: There is no single thing you can build that makes an agent safe to run in production. Not a smarter model, not a stricter prompt, not a clever guardrail. Safe autonomy requires a stack.

## What do we even mean by “agent”?

Ask 10 builders for a definition, and you’ll get 10 answers—and most of them are really examples (“You know, like a coding agent”) rather than definitions. That’s fine; we’re still in the relatively early days of agentic AI. But the fuzziness hides what matters here.

An agent is not the model. The model is the brilliant, non-deterministic part in the middle. The agent is the deterministic software wrapped around it—the part that decides what the model is asked, what it may do with the answer, which tools it can reach, and what happens when it is wrong. The model supplies intelligence. The agent supplies judgment about how far to trust that intelligence and what to let it touch.

Seen that way, the interesting engineering in an agentic system is usually the wrapper. And the whole safety question reframes with that distinction: Making an agent safe is less about a smarter model in the middle and more about a better deterministic shell around it.

> >
> Making an agent safe is less about a smarter model in the middle and more about a better deterministic shell around it.

Concretely, the harness we wrap around the model during execution is a mostly-deterministic workflow with a few narrow, schema-checked model steps inside it. It is what turns “the model worked something out once” into “these steps run the same way every time.” You don’t need its full mechanics yet—that’s another layer. For now, just hold the picture: a deterministic workflow with the model kept on a short leash inside it.

Harness, agent, orchestrator, playbook, call it what you like. The load-bearing idea is the same: deterministic software putting a non-deterministic model to work, on purpose, within limits.

## Authorization over intelligence

The “holy grail” of agentic development is an agent that can investigate a problem, work out a fix, and carry it out without a human directing every step. But getting there in production means building safety into each step. More autonomy should not mean fewer controls.

Imagine giving that agent a service account with broad access, a shell that can run anything, and a stern system prompt listing everything it must never do. It might have everything it needs to fix the problem. But what actually prevents it from taking an action it shouldn’t take?

A broadly privileged service account can give the agent more access than the person who invoked it. An unrestricted shell can put anything that account and machine can reach within the impact radius. A system prompt helps guide behavior, but it can’t enforce permissions. The model can misinterpret an instruction or be influenced by malicious text in a log or tool response. Production safety can’t depend on instructions to the model alone.

> >
> The hard part of autonomy is authorization, not intelligence.

**The hard part of autonomy is authorization, not intelligence.** Modern models are frighteningly good at figuring out the fix. The real question is: “What is this thing allowed to do, under whose identity, through what interface, and with whose sign off?” It’s boring, it’s deterministic, and it’s the whole game.

## The mental model: Four boundaries, layered

Once we started stacking boundaries, the architecture fell into four layers. Each answers a different question. None of them are sufficient alone, and that’s the point.

The concentric “defense in depth” diagram, with an untrusted LLM at the core wrapped by four boundaries (Identity, Tool, Mutation, Time).

The concentric “defense in depth” diagram, with an untrusted LLM at the core wrapped by four boundaries (Identity, Tool, Mutation, Time).

Read bottom to top, it’s defense in depth across identity, tool, mutation, and time. Read as a sentence: The agent acts only as the human who summoned it (identity), reaches production only through a controlled interface (tool), can read freely but must pause before it changes anything (mutation), and gets less reliant on live reasoning the more it runs (time). Two of these are security controls in the literal sense: identity and tool access are where an attacker or a hallucination does its damage, so that’s where the hardest walls go.

### Layer 1: The agent never has more access than you

The agent doesn’t get its own powerful account. It acts on behalf of the human who invoked it, bounded by that person’s real permissions. Where a service identity is unavoidable, it gets the narrower of the two. Identity is compound: the human plus the agent, and the stricter one wins. Access policies are owned by the teams that own each tool, defined per tool, and changed through a normal pull request (PR) with the tool team as a required reviewer. Merging a PR grants access; reverting it revokes access.

### Layer 2: One tool interface, not a bare shell

The agent never gets a bare shell. Every capability it has sits behind a single typed tool interface, each tool is individually authorized, and each call is structured and logged. Note the careful wording: The enemy is not the command line; it is the *unbounded* one. A raw shell cannot be governed, because you cannot put a permission boundary, a schema, or a clean audit trail around bash. But a command line invoked as one narrow, declared tool, behind the interface, is fine.

> >
> The framing of “MCP vs. CLI” is a false dichotomy.

This is why the framing of “MCP vs. CLI” is a false dichotomy. You want both, chosen by trust level. Put everything behind the tool interface, then pick the implementation per call: a plain function or a sandboxed CLI for low-risk local work inside the trust boundary, and MCP for anything that crosses it, because MCP gives you least privilege, credential isolation, structured audit, human approval hooks, and rate limiting for free. You can secure a CLI, too, but only by paying for per-user sandboxes with tightly limited access, and even then, you can’t match per-tool granularity.

### Layer 3: Read freely, pause before you write

Diagnostics run on their own. Anything that mutates production stops and waits for a human. This sounds obvious and is surprisingly hard to enforce, because the temptation is to let “safe-looking” writes through. We do not. The gate is code in the execution engine, not a line in a prompt, and trust to skip it is earned per procedure and per action type—never granted to a model because the model is smart.

### Layer 4: The agent that learns to stop being an agent

The first time we see an incident, the agent reasons through it end to end, which is expensive and non-deterministic. But most incidents aren’t novel. When the same reasoning path succeeds enough times, we crystallize it into a deterministic playbook that runs with zero model calls. The agent becomes a discovery mechanism for new problems, not a permanent tax on old ones. Less live reasoning means lower cost, higher reproducibility, and a smaller surface for both hallucination and attack, all at once.

Unconstrained agent vs. traditional automation vs. the composed stack, across Safety, Auditability, Compliance-fit, Reproducibility, Flexibility, Novel-incident handling, Speed, and Cost efficiency. No approach wins everywhere; the composed stack is the only shape that stays large where operations need it.

Unconstrained agent vs. traditional automation vs. the composed stack, across Safety, Auditability, Compliance-fit, Reproducibility, Flexibility, Novel-incident handling, Speed, and Cost efficiency. No approach wins everywhere; the composed stack is the only shape that stays large where operations need it.

## Why one layer is never enough

Let me make this concrete with the incident from the top, because it shows where a single control would have failed.

The agent gets show interface status back from a device. That output is unstructured text, and this is the kind of work a language model is good at, so we let it parse. But we don’t let it decide. The output of the model is constrained to a schema, validated, and only then handed to ordinary deterministic code that chooses the action:

Copy
`# errdisabled- recovery.yaml (excerpt)
steps:
- id: parse-status
type: ai-extract # LLM parses unstructured CLI output into typed JSON
prompt: "Extract interface, status, vlan from the CLI output."
schema:
interface: string
status: enum[connected, errdisabled, notconnect]
vlan: int
- id: validate
type: assert # deterministic: reject anything off-schema
rule: "status in [connected, errdisabled, notconnect]"
- id: decide
type: condition # deterministic: no model in the decision
when: "status == 'errdisabled'"
then: recover-interface # a WRITE step -> pauses for human approval
else: no-action`

This is the pattern we call deterministic skeleton, probabilistic filling. The language model is the semantic parser. It is never the decision-maker, and it never holds the credential that executes the change.

> >
> Deterministic skeleton, probabilistic filling.

Now watch what happens on a harder request. Ask the same system to generate a BGP configuration for a new device, and it will produce something that looks completely correct. It will also, often enough to matter, invent an ASN, reference a route policy that doesn’t exist, or quietly miss a datacenter-specific convention that no amount of prompting reliably teaches. Config generation is novel synthesis, which is the least reliable thing a model does, and it’s also the most risky, because the output goes near production.

So, walk the counterfactua
lisajaloza10
🟧 echo.blog ⭐Original first-party Microsoft post, no upstream source. Opens: "It's 2:00 am. A pager goes off... We built an AI agent to do that reconstruMicrosoft (by Arun Malik, Principal Software Engineer, Azure Networking)——
🟠 redditMicrosoft and Sumsub treat AI agents as insider threats, forcing zero-trust controls
artificial
VectorWireAI53

Interpretation history

Decision trace