# How We Benchmark AI Agents Sharing Apps Privately

> The method behind the AI agent private-sharing benchmark: the task, the independent checker, sealed evidence, and the fixed model and limits.

Source: https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/

---

1. [Home](https://layerv.ai/)
2. [Benchmarks](https://layerv.ai/benchmarks/)
3. [AI agent private-sharing benchmark](https://layerv.ai/benchmarks/ai-agent-private-sharing/)
4. Methodology

Methodology · qURL™, ngrok, Cloudflare

# How the benchmark is run

An AI coding agent operates each tool’s own CLI from its official docs. A separate checker sends single-use requests and decides every result from the app’s own request log, never from what the agent or the tool reports.

6 scored trials; 7 recorded of 30 planned Tested November 3, 2026 [JSON ↓](https://layerv.ai/data/benchmarks/ai-agent-private-sharing/results.json) [CSV ↓](https://layerv.ai/data/benchmarks/ai-agent-private-sharing/trials.csv)

Who does the work, and who decides

**AI agent** claude-sonnet-5, tool’s docs + CLI only

→ 

**Tool under test** qURL · ngrok · Cloudflare

→ 

**Local app** 3 paths, private request log

**Alice · Bob · Eve** Real browsers, own mailboxes

**Independent checker** Single-use requests → matched against the app’s log → sealed evidence → verdict

## The task

1. **Share the app privately.** The agent publishes a local Next.js app with the tool’s own CLI, so that only invited people can reach it.
2. **Let two people in, keep one out.** Alice and Bob are invited. Eve, who was not, must not reach the app. All three are test identities with their own mailboxes.
3. **Remove one person.** The agent removes Alice. Bob is sampled throughout, so any interruption, URL change or new sign-in is caught.
4. **Clean up.** The harness deletes everything the trial created and checks the old URL: it must no longer reach the app.

## Sample and scoring scope

The harness recorded 7 trial slots of 30 planned. The tables show 6 trials with agent activity or a removal attempt. A slot the agent never ran is excluded. Per-check ratios use recorded PASS or FAIL outcomes; checks not reached, inconclusive checks and second-network checks are excluded from those ratios. Removal continuity uses the harness summary: a recorded URL change or new sign-in is an interruption even if its detailed check is unscored. The exporter rejects conflicting scored verdicts or an unscored summary without this evidence. These are results for the tested configurations, not every configuration of each product. The recorded batch status is BLOCKED; the public export does not record a stop reason.

## The app being shared

A synthetic Next.js app, built for production and bound to localhost. It holds no real data. It serves three paths: a page (`/proof`), a static file (`/asset`) and an API route (`/api/proof`). Each answers only a request that carries the current run and a new single-use value, returns a fresh marker with caching disabled, and writes a line to a private log. Every allow or deny check hits all three paths.

## The checker

- Runs as a separate process the agent has no tool to read or change.
- Generates unpredictable single-use challenges, matches each response against the app’s log, and rejects replays.
- A pass for access needs the app’s marker for that challenge. A pass for denial needs a healthy app and no matching request in its log.
- Evidence is written as a hash chain and sealed at the end of each trial. The results file carries each seal.

## The operator

Claude Code with only the benchmark tools (no shell, no file access). Model: `claude-sonnet-5` from Anthropic. Every tool gets the same model, prompts and limits, and the agent reads copies of each tool’s official docs that were captured and hashed before the run. The prompts state requirements, not commands or policies, and nobody corrects the agent’s commands. The model spend cap was $0, and every trial recorded $0 of model spend.

__Limits per trial__
| Agent working time per trial     | 30 minutes  |
| -------------------------------- | ----------- |
| Model calls per trial            | 45          |
| Tool calls per trial             | 90          |
| Time per model request           | 100 seconds |
| Wait for a sign-in email         | 75 seconds  |
| Output tokens per model response | 4,096       |

## The tools

The Cloudflare lane used a protected Quick Tunnel with an email allowlist. [Cloudflare documents the \--allowed-mail flag here ↗.](https://developers.cloudflare.com/changelog/post/2026-10-02-protected-quick-tunnels/)

| Tool                                          | How access works                                                                                                                   | How removal works                                         | Session limit                        |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ------------------------------------ |
| qURL qURL CLI 3.6.1                           | Private review access (qurl publish --access review): each recipient verifies their email, then the publisher approves that grant. | Revoke one recipient’s grant; everyone else keeps working | Ends the moment the grant is revoked |
| Cloudflare Quick Tunnel cloudflared 2026.10.7 | Quick Tunnel started with --allowed-mail for each recipient; visitors sign in with an emailed PIN.                                 | Restart the tunnel; the URL changes                       | Not documented as configurable       |
| ngrok (OIDC)ngrok 3.37.3                      | Traffic Policy OIDC action against a test OpenID Connect provider, plus an email allowlist written by the agent.                   | Restart with a new policy; visitors sign in again         | Configurable maximum session         |

## Every trial starts clean

Each trial starts with a new agent conversation, an empty workspace and new browser profiles for every recipient, with tool order shuffled from a fixed seed.

## Session expiry

Where a tool documents a session limit, the agent sets it to 600 seconds. The checker samples the open session at \-30, +5, +30, +60 seconds around the deadline, rejects any sample more than 10 seconds late, and accepts enforcement within 60 seconds. A fresh sign-in afterwards must work.

## How results are counted

- Each proportion uses the scored trials for that tool.
- Time medians cover trials whose initial share worked, and say how many.
- Bob recovering after signing in again does not pass removal without interruption.
- A capability a tool does not offer is shown as such, never scored as a pass.

## Fingerprints

| Protocol        | layerv-agent-benchmark-v5                                        |
| --------------- | ---------------------------------------------------------------- |
| Plan SHA-256    | 396fa004a25c40b2927e193038a6d8fce1cd6c1400baee90b86cd93f02c1ae35 |
| Harness SHA-256 | 084b2fe28479591ad819b966fed49c9fd1cd7e60be9f70e64c437bebb925aa3d |

The results file is rebuilt from the harness’s artifacts by `scripts/research/build-agent-sharing-benchmark.mjs`, which selects trial fields, copies protocol configuration objects, and refuses to write if it finds an address, email, token or local path. [See the batch →](https://layerv.ai/benchmarks/ai-agent-private-sharing/runs/)

## Frequently Asked Questions

Can the AI agent see or change how it is scored? 

No. The agent has a narrow set of tools: search the pinned docs, run the tool’s own CLI on resources it created, write a policy file, and stop its own processes. The checker, the app’s log and the evidence files are outside all of them.

Why use test identities instead of real users? 

Alice, Bob and Eve are controlled identities with their own mailboxes and browsers, so the benchmark can sign them in, remove them and prove a denial without any real person’s account or data.

Can I check the evidence? 

The plan and harness are fingerprinted with SHA-256, and each trial’s sealed evidence stream has its own hash in the results file. Raw logs stay private because they hold test credentials and network addresses.

## Cite this

LayerV (2026). AI agent private-sharing benchmark, batch automated-v5-1793683081573\. https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology. CC BY 4.0.

On this page

1. [The task](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#the-task)
2. [Sample and scoring scope](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#sample-and-scoring-scope)
3. [The app being shared](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#the-app-being-shared)
4. [The checker](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#the-checker)
5. [The operator](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#the-operator)
6. [The tools](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#the-tools)
7. [Every trial starts clean](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#every-trial-starts-clean)
8. [Session expiry](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#session-expiry)
9. [How results are counted](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#how-results-are-counted)
10. [Fingerprints](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#fingerprints)
11. [Frequently Asked Questions](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#faq)
12. [Cite this](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#cite-this)

Key facts

Sample

6 scored trials; 7 recorded of 30 planned

Tested

November 3, 2026

Data

[JSON ↓](https://layerv.ai/data/benchmarks/ai-agent-private-sharing/results.json) [CSV ↓](https://layerv.ai/data/benchmarks/ai-agent-private-sharing/trials.csv)

Cite

[Copy the citation ↓](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/#cite-this)



---

*This markdown version is auto-generated from [https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/](https://layerv.ai/benchmarks/ai-agent-private-sharing/methodology/) for AI agents. Curated agent resources: [llms.txt](https://layerv.ai/llms.txt). For the full interactive experience, visit the HTML version.*

Site search: POST https://4f981608-057a-48bb-b205-a289823b32e4.search.ai.cloudflare.com/search with JSON `{"messages":[{"role":"user","content":"YOUR QUERY"}]}`. Results include public content and source URLs.

