Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

PasilloWatch caught an agent calling a tool its user could not, at two real MCP gateways

PasilloWatch reads agentgateway and MCPHub logs and rebuilds who asked which agent to call what. In recordings from both gateways, a reporting agent exported customers its user could not.

By David Discua

Measured in the lab

21
tool hops parsed
8
delegation chains
6
scope widenings (PW001)
6
identity not propagated (PW003)
agentgateway v1.6.0linked by trace and time2
MCPHub 1.1.7linked by time only3
Generic A2Asynthetic, parent span1
  • agentgateway: 8 hops, 2 rejected, 3 delegated hops linked
  • MCPHub: 8 hops, 1 rejected, 3 delegated hops linked by timing
  • Fixture MCP servers received 70 requests with no Authorization header
  • Token with sub alice and act.sub agent-b: agentgateway rejected the export
  • A2A path covered by synthetic data and unit tests only

From reports/measured.json · run on October 21, 2026. agentgateway v1.6.0 and MCPHub 1.1.7 recorded in Docker on synthetic data; the generic A2A file is synthetic; analyzer run keyless over the committed fixtures

How it is wired

summarizeas agent-ballowedaccess logAliceone-customer scopereports-agentMCP gatewaychecks agent-bCRM serverexport_all_customersPasilloWatchrebuilds the chain

01/03Alice may look up one customer, and she asks the reporting agent for a summary.

Alice may look up one customer. She asks a reporting agent for a summary, the agent calls export_all_customers with its own service identity, and the gateway allows it because it checks the agent and not Alice. PasilloWatch reads MCP and A2A gateway logs, rebuilds that delegation chain, and flags the hops where an agent used a tool the original caller could not, or where the caller's identity was dropped on the way. We recorded agentgateway v1.6.0 and MCPHub 1.1.7 in Docker running the same five scenarios, and the analyzer found the widened export at both. PasilloWatch works on logs after the fact and blocks nothing.

The catch

By the time a finding appears, the export has already happened. The chain is also only as good as what each gateway logs. MCPHub's activity log has no trace field, so all three of its delegated hops were linked by time window and the agent map, and two overlapping calls to the same agent can make a link ambiguous. Scopes are enumerated from tools PasilloWatch can see in the logs, the config and the map's inventory, so a tool nobody called or listed stays invisible. agentgateway's authorization rules are CEL, and PasilloWatch evaluates a subset of it. Anything outside that subset returns "unknown" as PW006 instead of a guess. The A2A path has unit tests and a synthetic file, with no real A2A recording.

What we ran (keyless)

bun install --frozen-lockfile
bun run src/cli.ts demo
bun run report

From reports/measured.json, run on October 21, 2026, over the committed recordings:

InputTool hopsRejected by gatewayDelegated hops linkedLink methodScope widening (PW001)Identity not propagated (PW003)
agentgateway v1.6.0, real access log823trace 2, time-window 122
MCPHub 1.1.7, real /api/activities813time-window 333
Generic A2A, synthetic502parent-span 211

Totals were 21 hops, 8 delegation chains, and findings of 6 errors, 11 warnings and 5 notes. A typical error in reports/findings.md says that 'alice' cannot call crm/export_all_customers at agentgateway but did so through reports/summarize_account, where the agent called it as 'agent-b'. The recordings ran on synthetic customers and throwaway identities generated per run.

The recordings also showed where identity got lost. The fixture MCP servers behind agentgateway received 70 requests, and none carried an Authorization header, so Alice's identity never reached the agent unless you configure it. With an RFC 8693-style token (sub: alice, act.sub: agent-b), agentgateway evaluated Alice's scope and rejected the export, which is the fix the findings point you toward.

How it is wired

Each tools/call or A2A request becomes a hop with a time window, caller, actor, on-behalf-of, target and tool. A hop is the child of another when it ran inside the parent's window and they share a parent span, a trace id, or an agent identity declared in pasillo.yaml, with the innermost parent winning. Scopes come from agentgateway's mcpAuthorization rules or from MCPHub's bearer keys and groups, and each hop is checked against the original caller's scope. Output is a Mermaid and JSON chain graph, Markdown and SARIF findings, and an exit code for CI.

Minilab (open source)

The two gateways are agentgateway/agentgateway (5,533 stars, Apache-2.0, Rust) and samanhappy/mcphub (2,580 stars, Apache-2.0, TypeScript), as of October 24, 2026, both run from digest-pinned images. With Docker, bun run record:agentgateway and bun run record:mcphub record fresh logs with no API keys, and bun run report regenerates reports/measured.json.

Run it yourself

SkilledDragonCorp/pasillowatch

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run src/cli.ts demo

SkilledDragon is not affiliated with the agentgateway project, or MCPHub and its maintainers. Numbers are from our own keyless lab run over recordings of synthetic traffic; re-run the report before relying on them. Marks belong to their owners.

All labs