Guides/Playbook

Copilot adds Agent 365 streaming: Verify the audit evidence

6 min read
On this page
Paired audit records aligned on a sparse ledger, with one response visibly incomplete

Copilot audit streaming

General Analysis

GitHub announced Copilot activity streaming to Microsoft Agent 365 on November 17, 2026. The release brings activity from Copilot clients into a central investigation surface. Before relying on it, establish what the connection collects and which conclusions those records support.

Consider a reported file upload. An investigator needs to distinguish a model proposing the upload, a tool attempting it, and the destination accepting the file. A populated activity dashboard may establish only part of that sequence. Build the rollout review around a small set of known actions whose outcomes you can verify independently.

This guide combines the vendors' documentation with a proposed acceptance procedure. General Analysis has not tested the integration in a customer tenant. For client-side tracing to your own collector, use the separate Copilot app OpenTelemetry guide.

Set the collection boundary before connecting#

GitHub's streaming setup guide limits the public preview to Enterprise Managed Users on GitHub.com or Enterprise Cloud with data residency. An enterprise owner enables Copilot Usage Records Streaming under AI controls → Copilot → Billing & usage. The REST API has a separate enablement policy.

Then open Settings → Audit log → Log streaming, choose Microsoft Agent 365, and authorize the GitHub app through Microsoft Entra for the intended tenant. This destination accepts Copilot session events only.

The connection defaults to Include raw content: prompts, responses, tool inputs/results, and client addresses. Turning it off shares activity metadata instead, including model names, token counts, dates, and tool names. The choice affects this connection alone. See GitHub's Agent 365 setup.

Record the tenant, enterprise, connection, collection choice, and approval owner before expanding access. Review every additional destination separately; changing one connection is insufficient evidence that content stopped flowing elsewhere. If the approved use is adoption reporting, start by asking whether content is necessary at all. If the use is incident investigation, document which questions a metadata-only record leaves unanswered.

Microsoft's Agent 365 overview requires at least one qualifying licensed user to enable the product. Verify the tenant's actual entitlements and investigator access before promising a Purview or Defender workflow. The availability of the GitHub connection does not settle those downstream requirements.

See how your AI systems hold up under real attacks

General Analysis maps AI applications and agents, red teams prompts, retrieval, tools, MCP servers, browser actions, permissions, and business workflows, then turns findings into evidence your team can reproduce and retest.

Keep inference records separate from action evidence#

The GitHub event reference describes two useful but different records. Agentic audit events identify an action, the initiating user, and a session identifier when applicable. Streamed Copilot API usage records identify a request or response, enterprise and user IDs, endpoint, timestamp, event ID, request ID, and body.

Store the two record types separately. A request identifier groups related inference evidence; counting those identifiers will not tell you how many tools completed. Join records using their documented identifiers, with timestamps as supporting context.

For a suspected repository change, preserve the relevant commit, pull request, or audit event alongside the Copilot evidence. For an external upload, retain the destination's object identifier and receipt or activity log. Record a failed attempt as a failed attempt. An assistant's statement that it finished is a lead to verify.

Authentication also belongs in the pilot record. The Copilot CLI Entra guide explains its GitHub and Microsoft 365 inference routes. Test the route employees actually use; a successful GitHub-stream check should not be generalized to a different service merely because the terminal application has the same name.

Preserve incomplete records during ingestion#

GitHub's streamed-record schema makes body a JSON-encoded string. It also defines truncated: true means the body was shortened to fit the 1 MB document limit; omission means false. The timestamp is in milliseconds since Unix epoch.

Save the original envelope in access-controlled storage before transforming it. A cut-off body may fail JSON parsing. Preserve the failed record for investigation; substituting an empty object hides the missing evidence. Successful parsing does not override a truncation flag.

This illustrative jq projection extracts identifiers and a completeness indicator from already-decoded usage-record objects. It does not parse or print prompt bodies. It is a local triage aid, not an Agent 365 query or a complete ingestion validator; confirm any destination-specific transformations first.

Code source: illustrative projection using GitHub's documented envelope fields.

Shell
jq -c '{ enterprise_id, user_id, event_id, github_request_id, type, timestamp_ms: .["@timestamp"], truncated: (.truncated // false) }' usage-records.jsonl

Restrict access to this output too: it still identifies users. Validate required fields and types before accepting a record into the production index; a missing identifier should remain an ingestion error, not silently merge into a shared null group.

GitHub documents at-least-once delivery. Deduplicate the analytical view by enterprise and event ID while preserving receipt provenance. Do not deduplicate by request ID: a request and its response are different evidence. If the same event ID arrives with different content, retain the conflict for investigation instead of overwriting it.

Accept the stream against known work#

Choose a small pilot across the clients you intend to support. GitHub's announcement names cloud agents, CLI, VS Code, Visual Studio, and partner IDEs. That scope is a starting list for verification, not proof that your deployed versions and authentication paths all emit the evidence you need.

Use a disposable repository and dummy text. Record the account, client build, inference route, UTC window, task, and observed result before searching the destination. Keep this expected-work list independent of the events that arrive; otherwise missing clients disappear from the denominator.

The table contains recommended acceptance cases, not measured results:

Pilot caseEvidence to retainInvestigate if missing
A known prompt and responseAccount and time window matched to received activityPolicy enablement, tenant, client route, delivery, and query scope
A harmless file changeRecorded tool evidence plus the actual file diffWhether the captured record shows a proposal, attempt, result, or completed change
Content disabled on the connectionDummy content absent from received payloads and downstream viewsConnection choice, another export path, or retained older content
Duplicate or incomplete input to your collectorStable unique-event counts; incomplete records remain visibleDeduplication key, parser failures, or transforms dropping flags

Exercise the last case with synthetic fixtures in your own ingestion tests. There is no need to flood a live client or manufacture a large sensitive prompt to test truncation handling. Separately verify the real fields arriving at the destination; a fixture cannot prove vendor behavior.

An absent prompt is expected in metadata-only collection. With raw-content collection enabled, investigate the same absence and assign the unresolved row to an owner. The shadow AI detection guide covers building the wider inventory of deployments to include in this review.

Give delivery failures an operational owner#

GitHub checks stream health every 24 hours and warns that a misconfigured stream must be fixed within six days to avoid dropped events. Route those notices to someone who can repair the connection. Add an alert for missing expected pilot activity; a healthy transport and an empty investigation query can coexist.

Set retention and investigator permissions in each destination. The event reference's 180-day enterprise audit search window does not establish Agent 365 content retention. Likewise, turning off collection is not a deletion procedure for previously exported copies.

Approve the stream for a named purpose once the pilot supplies the required evidence. Document which investigations remain possible with content disabled or incomplete, and who handles delivery failures. Permissions and enforcement on the agent and its connected services still need their own rollout checks.

Frequently asked questions

  • Does Agent 365 receive all GitHub enterprise audit events?

    GitHub documents its Agent 365 destination for Copilot agent session events only. Keep an appropriate destination for the other enterprise audit events you need. Enabling this connection does not establish complete GitHub audit coverage.

  • Why are prompts missing from a Copilot activity record?

    Check the connection's raw-content setting, the record's truncation flag, and any downstream processing. A metadata-only connection intentionally omits content. A truncated body or an unmatched record needs a separate explanation; neither proves that the user submitted no prompt.

  • Does a streamed tool call prove that a file was changed?

    No. Inspect the recorded tool result and corroborate the change through the target repository or service. A model request, response, or proposed tool call does not by itself establish execution, successful completion, or authorization.

Browse all