Rightshold™ Sign up
Open betalive and open to everyoneEvidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · AI evidence

Copilot's agent opened a pull request and pushed commits in one of our repositories. Where can we see exactly what it did and who started it, how long is that kept, and can we hand the session log to an auditor as our record?

Last updated

TL;DR: Start from the commit. Copilot cloud agent (called Copilot coding agent in GitHub's March 20, 2026 changelog) authors its commits as Copilot, lists the person who started the task as co-author, signs them so they show as Verified, and adds an Agent-Logs-Url trailer linking to the session log. The session log shows the agent's reasoning, the tools it used and the checks it ran. Enterprise owners can see sessions from the last 24 hours under AI controls, and filter the enterprise audit log with actor:Copilot to see agent activity for 180 days, with fields such as action, actor_is_agent, agent_session_id and the user who started it (pull_request.create carries the session ID). Neither one is a complete record you control: the audit log holds platform events, not the transcript, and only for 180 days unless you stream it out; the session log is GitHub's view of the run, and some session types can be deleted by the person who ran them. For an auditor, stream the audit log to your own storage, and keep the commit SHA, session ID and log link for each merged change in a record outside the repository.

What should I check, step by step?

1. For any agent commit, read the trailers: Copilot as author, the person who started the task as co-author, and Agent-Logs-Url pointing to the session log.

  1. In the enterprise audit log, filter actor:Copilot and match agent_session_id across events to tie a pull request to the session that created it.
  2. Set up audit log streaming (Amazon S3, Azure, Datadog, Google Cloud Storage, Splunk and others) if you need agent events older than 180 days.
  3. Know which sessions can disappear: cloud sessions that run on GitHub Actions can be archived but not deleted, while synced CLI or app sessions and sandbox sessions can be deleted by their owner.
  4. If you need prompts, responses and tool calls outside GitHub, look at Copilot usage record streaming or OpenTelemetry capture classes — both are opt-in and can carry source code, so send them only to an approved collector.
  5. For each merged agent change, keep the merge commit SHA, agent_session_id, Agent-Logs-Url and reviewer in a record you control.

Where can you see what GitHub Copilot's cloud agent did?

Commits. GitHub's docs say commits from Copilot cloud agent are authored by Copilot with the person who started the task as co-author, are signed and show as Verified, and include a link to the session logs. GitHub's March 20, 2026 changelog names the trailer: Agent-Logs-Url, described as a permanent link from agent-authored commits back to the full session logs.

What does the GitHub audit log record for Copilot agent activity?

GitHub's reference for agent events says the actor:Copilot filter shows agentic activity over the last 180 days. The key fields are action (for example pull_request.create), actor_is_agent (always true for agent events), agent_session_id (present when the event came from an agent session) and user (the person who started it).

Is a Copilot agent session log an audit trail?

The session log is the best place to see why the agent made a change: what it read, what it ran and what it saw. But it's written and stored by GitHub, it shows what GitHub recorded about the run, and you can't check from the log alone that nothing is missing.

How do you keep your own record of Copilot agent changes?

Stream the audit log out of GitHub before the 180-day window closes, so agent events (with actor_is_agent and agent_session_id) sit in storage your organization owns.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Copilot's cloud agent opened a pull request that we reviewed and merged. Record a receipt with the merge commit SHA, the agent_session_id, the Agent-Logs-Url, who started the task and who approved it by role, and the SHA-256 of the merged diff.”

One-click setup

{
  "tool": "record_action",
  "arguments": {
    "action_type": "agent.code_change_merged",
    "outcome": "success",
    "occurred_at": "2026-11-21T22:00:00Z",
    "client_event_id": "repo-billing:pr-1842:merge",
    "summary": "Copilot cloud agent PR 1842 merged as commit <merge sha>; agent_session_id <id from audit log>; Agent-Logs-Url <link from commit trailer>; task started by role backend engineer; approved by role code owner after review; CI checks green",
    "action_sha256": "<sha256 of the merged diff>"
  }
}

Rightshold isn't affiliated with GitHub or Microsoft. Details are from GitHub Docs pages on agent audit log events, monitoring agentic activity, managing agent sessions, Copilot session data, audit log streaming and the enterprise audit log event list, and GitHub's March 20, 2026 changelog, all read November 21, 2026. Features marked public preview can change, and availability depends on your Copilot plan and enterprise type.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'