Skip to content

OTel: emit provenance (source, path, SHA-256) for loaded hooks, skills, custom agents, plugins and MCP configs #5658

Backlog

Description

@k4otix

Describe the feature or problem you'd like to solve

Hooks, skills, custom agents, plugins and MCP server configs make up the agent's control plane and its supply chain. The OTel export names some of them, but never says where they came from or what their content was:

  • github.copilot.hook.* events carry hook.type, invocation_id, tool_names, decision and duration. There is no command, script path or source (managed / user / repo / plugin).
  • github.copilot.context.skills and custom_agent_names are lists of names only. github.copilot.skill.invoked has skill.source, but no path or hash.
  • github.copilot.mcp.server.lifecycle has name_hash and source, but nothing about the server definition.

So security teams can't detect a managed hook that was edited to a no-op, a repo-supplied skill that shadows a trusted skill's name, or a config that changed between sessions. Names can collide and can be spoofed; content hashes can't.

Proposed solution

A per-session configuration inventory span event on invoke_agent (for example github.copilot.config.artifact), emitted once per loaded artifact, with these metadata-only attributes (no content needed):

Attribute Example
github.copilot.artifact.kind hook, skill, agent, plugin, mcp_config, instructions
github.copilot.artifact.name pre-tool-policy
github.copilot.artifact.source managed, user, repo, plugin:<name>, builtin
github.copilot.artifact.path ~/.copilot/hooks/policy.json
github.copilot.artifact.sha256 hash of the file (for hooks, also hash the referenced script)
github.copilot.artifact.managed_expected_sha256 for managed plugins, the hash the server delivered

At minimum, add source and sha256 to the existing hook, skill and MCP lifecycle events.

Example prompts or workflows

  • Alert when a managed hook's hash differs from the managed baseline, or when the managed_expected_sha256 comparison fails.
  • Alert when an agent-invoked skill came from a repo source the organisation hasn't seen before.
  • Build an inventory of every skill, agent and plugin in use across the fleet, by source and version (hash).
  • Detect a repo hook that started running after a folder was trusted.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions