Microsoft Foundry Copilot Harness for Enterprise Governance

Copilot harness in Foundry is the first agent feature I’d put in front of a governance board

Microsoft Foundry Copilot Harness for Enterprise Governance

A governance board should care about the harness before the next demo.

On this page

Last spring I sat in a review with a 14-person architecture team after an agent pilot had already wowed the business, and the room went dead when the CIO asked a simple question: “Where does it stop, who approves the exception, and whose name goes on the incident?” That experience shapes my view, but the reason this matters now is that Microsoft is exposing lifecycle hook points in the platform.

The most important question about a new agent feature is not whether it can act. It is whether leaders can define where action stops, where people intervene, and who owns the outcome.

That is why the GitHub Copilot Harness experience documented in Copilot Studio has my attention. Microsoft’s Azure AI Foundry Agent Service is the managed platform story for building and operating agents, while the harness documentation specifically describes lifecycle hooks in the Copilot Studio agent experience Foundry Agent Service overview Agents powered by the GitHub Copilot Harness overview.

I am taking a clear position: the GitHub Copilot Harness is the first agent feature I would put in front of a governance board. Not because it solves governance, but because it gives you lifecycle control surfaces concrete enough to govern.

The governance board should care before the next agent demo

A lot of agent pilots fail in a predictable order.

First, the team proves the agent can do something useful. Then they connect one more tool. Then someone asks whether it can write, approve, delete, or trigger. By that point, the architecture is already emotionally committed, and governance gets dragged in as the department of no.

That is backwards.

The board’s job is not to admire prompt quality. The board’s job is to define acceptable operating boundaries:

  • What actions are inside the approved lane
  • What actions require a human in the loop
  • What actions are flatly denied
  • Who owns the business outcome when the agent gets it wrong

If control points are becoming part of the platform experience, governance cannot stay a future-phase conversation.

What is genuinely new: lifecycle control as an architectural primitive

The interesting part of the GitHub Copilot Harness documentation is not branding. It is the hook model.

Microsoft says hooks can run workflows at points in the agent lifecycle, including when a session starts and before a tool run Agents powered by the GitHub Copilot Harness overview. Those two moments matter more than most teams realize.

Session start is where you establish operating context:

  • who the user is
  • what environment they are in
  • what data scope applies
  • what policy pack should govern the interaction
  • whether the session gets elevated authority at all

Before tool run is where governance becomes real:

  • inspect the intended action
  • validate prompt and payload shape
  • check data sensitivity
  • require approval for specific tool classes
  • block, redact, or escalate

Here is the simplest way to explain it to a board: if you can control the lifecycle, you can bound execution.

Turn lifecycle hooks into bounded execution

“Bounded execution” is the phrase I use with enterprise teams because it forces discipline.

An agent should have:

  1. an explicit scope of permitted action
  2. named interruption points
  3. a mandatory escalation path when it exceeds scope

Anything less is a demo pretending to be a product.

My practical pattern is simple. Every consequential tool call gets mapped to one of three routes:

  • Proceed within approved boundary
  • Pause for human approval
  • Deny and route to an accountable owner

If your team cannot classify every tool call that way, you are not ready for production.

The example below is illustrative pseudocode for governance logic tied to the documented lifecycle moments, not an official Copilot Studio or Foundry SDK sample.

# Pseudocode: governance checks at session start and before a tool run

APPROVED_TOOLS = {"search_docs", "create_ticket", "delete_record"}
HUMAN_APPROVAL_TOOLS = {"delete_record"}
BLOCKED_TERMS = {"password", "ssn", "secret"}

def on_session_start(user_id: str, environment: str) -> dict:
    if environment not in {"prod", "test"}:
        return {"allowed": False, "reason": "Unknown environment"}
    return {
        "allowed": True,
        "policy_pack": "standard-enterprise",
        "user_id": user_id,
        "environment": environment
    }

def before_tool_run(prompt: str, tool: str, session_context: dict) -> dict:
    if not session_context.get("allowed"):
        return {"decision": "deny", "reason": "Invalid session"}
    if len(prompt) > 500:
        return {"decision": "deny", "reason": "Prompt too long"}
    if any(term in prompt.lower() for term in BLOCKED_TERMS):
        return {"decision": "deny", "reason": "Sensitive term detected"}
    if tool not in APPROVED_TOOLS:
        return {"decision": "deny", "reason": "Tool not approved"}
    if tool in HUMAN_APPROVAL_TOOLS:
        return {"decision": "pause", "reason": "Human approval required"}
    return {"decision": "proceed", "reason": "Approved"}

What matters is the control pattern:

  • establish context at session start
  • evaluate risk before a tool runs
  • distinguish between deny and pause
  • route consequential actions to a named owner

That distinction matters. Mature governance is not only about blocking. It is about routing decisions to the right owner at the right time.

A board-level approval model for production agents

Here is the model I would put on one slide for a governance board.

Approve the agent as a bounded operating unit, not as a vague capability.

That review should require five things:

1. The specific tools the agent can invoke

List them. If the tool can create, update, approve, route, message, or delete, call that out explicitly.

2. The decisions the agent can influence

Sometimes the tool call is not the risk. The recommendation is. If the agent ranks candidates, drafts customer responses, prioritizes incidents, or proposes remediation, that is a decision surface.

3. The escalation path

For every action outside the approved boundary, define:

  • who gets the approval request
  • what evidence they see
  • what SLA applies
  • what happens if no one responds

4. Named owners

I want three names on the record:

  • business owner for the decision outcome
  • platform owner for the control implementation
  • risk owner for exceptions

5. Renewable approval

Agent approval is not permanent. Material changes should trigger review:

  • new tools
  • expanded authority
  • new data domains
  • changed operational context
  • new agent-to-agent dependencies

Connected agents make local governance inadequate

This gets more serious when agents connect to other agents.

The Copilot Studio overview describes connected agents as part of the experience, which is useful platform capability. It is also where weak governance models break apart Agents powered by the GitHub Copilot Harness overview.

When work crosses agent boundaries, local controls are not enough.

You need a shared enterprise contract for:

  • identity context
  • authority boundaries
  • approval handoffs
  • telemetry correlation
  • accountable ownership across the chain

Connectivity does not create governance consistency. Architecture does.

What the harness does not solve for you

Here is the hard line: product control points are not the same thing as enterprise control completeness.

The harness gives you meaningful places to enforce policy. Good. You still have to decide what the policy is, who approves exceptions, how identities are represented, what gets logged, what gets retained, and how releases are controlled.

Identity and access

You need to decide:

  • user-delegated or app-level authority
  • least-privilege boundaries
  • environment isolation
  • break-glass handling
  • approval identity versus execution identity

And if your developers are leaning on convenience credentials in production, stop that now. Microsoft explicitly notes that DefaultAzureCredential is convenient for development and that production use should choose credentials deliberately Step 1: Your First Agent.

Telemetry and observability

If you cannot reconstruct who asked, what the agent intended, what tool it tried to call, what policy fired, and who approved the exception, you do not have governance.

The example below is illustrative pseudocode for audit logic, not an official platform sample.

# Pseudocode: immutable audit event for a lifecycle decision

from dataclasses import dataclass, asdict
from datetime import datetime
import json

@dataclass
class AuditEvent:
    timestamp: str
    user_id: str
    tool: str
    decision: str
    reason: str

def record_decision(user_id: str, tool: str, decision: str, reason: str) -> None:
    event = AuditEvent(
        timestamp=datetime.utcnow().isoformat(),
        user_id=user_id,
        tool=tool,
        decision=decision,
        reason=reason
    )
    print(json.dumps(asdict(event), separators=(",", ":")))

record_decision("u123", "delete_record", "pause", "Human approval required")

Approval and denial both matter. Governance boards do not need more dashboards. They need evidence.

Data protection and release discipline

The harness does not magically solve:

  • data classification
  • sensitive data redaction
  • retention rules
  • promotion controls across dev, test, and prod
  • independent security review
  • rollback plans

If the agent can touch regulated data or operational systems, your release process has to look like production engineering, not workshop theater.

The operating model I would deploy first

If I were standing up a first governed deployment this quarter, I would keep it narrow and boring on purpose.

Pick one workflow with clear value and bounded consequence:

  • search internal policy documents
  • create a support ticket
  • assemble a draft incident summary
  • route a request for approval

Do not start with delete, approve payment, change entitlements, or update system-of-record data.

Then do this in order:

  1. Inventory tools and classify consequence.
  2. Define mandatory approval thresholds.
  3. Implement session-start and pre-tool-run controls.
  4. Log every decision path.
  5. Name the business, platform, and risk owners.
  6. Run a controlled pilot to test exceptions, not just happy paths.

The decision to make now

My opinion is straightforward.

The GitHub Copilot Harness deserves governance-board attention because lifecycle control points make agent behavior more governable than the unconstrained proofs of concept that have been floating around for the last year. That is a meaningful platform milestone.

It is not a substitute for the operating model. It is not a substitute for security review. It is not a substitute for release discipline. It is not a substitute for data controls. It is not a substitute for identity design. It is not a substitute for telemetry. It is not a substitute for accountable ownership.

But it is enough of a control surface that leaders should stop treating agent governance as a future problem.

If you are a CDO, CIO, CISO, or platform lead, put this on the next governance agenda:

  • identify high-consequence tool calls
  • define mandatory human-approval thresholds
  • document lifecycle controls implemented and missing
  • assign named owners
  • require evidence for production approval

That is the real milestone here. Not that agents can act. That enterprises finally have a better place to decide where action ends.

Where does this break in your environment: approval latency, identity design, or cross-agent ownership?

#EnterpriseAI #CopilotStudio #DataGovernance


Sources & References

  1. What is Microsoft Foundry Agent Service? - Microsoft Foundry
  2. Agents powered by the GitHub Copilot Harness overview - Microsoft Copilot Studio
  3. Step 1: Your First Agent

Try it yourself

Run this tutorial as a Jupyter notebook: Download runbook.ipynb (26 cells, 19 KB).

Link copied