TL;DR
- The playground's Discovery page showed 19 of 19 checks passed against the Drift Bean demo store. I reproduced 13 of them from public files with curl and jq, and all 13 matched.
- On Drift Bean the agent signed in with five permissions, including placing orders, got a key-bound token, and added one $28 coffee to the cart without ordering.
- All eight steps were walked through: Session passed 10 checks with one not run, the browser joined signed in, and two steps are not offered.
- On a local demo store the agent got only the two scopes I approved, was refused when it tried to order, and lost access after revocation.
- The playground failed a public copy of that store for not listing PS384, then passed it 20 of 20 after the fix.
Repeat this lab
I wrote this lab so you can run it yourself. Each step has the commands to copy and the output I got, and you can tick it as done. Your ticks stay in this browser only.
Copies a ready-made prompt for Claude Code, Cursor, Codex or any coding agent. For test environments only.
Show prompt
I want to run a hands-on lab from iamops.dev, and I would like your help to do it safely. Lab: Poppy playground: what its discovery checks prove, run from public files Read the whole lab here (Markdown): https://iamops.dev/poppy-playground-lab.md What the lab needs before the first step: - curl and jq How I want you to work: 1. Read the lab from start to finish first (each step lists its own prerequisites). Then check that the prerequisites are in place and that the tool versions match what the lab expects. Tell me what is missing before you run anything. 2. Run one step at a time. Before each command, show it to me and say in a sentence what it does. 3. Ask me before anything that costs money, creates cloud resources, touches a real tenant or account, or deletes anything. Wait for my answer. 4. Use the placeholders from the lab. Never paste real secrets, tokens or production identities into a command, a file or this chat. If a value is needed, tell me where to set it myself. 5. After each step, compare the output with the expected output in the lab. If it does not match, stop and tell me what differs. Do not carry on or invent a fix without asking me. 6. At the end, report what passed, what failed and which cleanup you did. Then offer to tick the steps off for me. The lab page keeps ticks only in my browser, so if you cannot do that, list the steps I should tick. This lab is for test environments only. Do not run it against production, or against a tenant or account that holds real data or real users. You may answer in my language.
The playground’s Discovery page ran 19 checks against the Drift Bean demo store, and all 19 passed. I reproduced the 13 checks that read public files with curl and jq, and all 13 matched. The other three kinds of check depend on live requests or on the playground’s own schema check, and I did not reproduce them.
The news article reported the same 19 of 19 result as background. This lab confirms the public-file part of it. It does not confirm the three checks I did not reproduce.
The second half tries the sign-in pattern on a small store that runs on your own computer, which needs no account on anyone else’s site.
Setup and run#
The first half uses curl commands, with jq to pick out the fields the playground checks. You need both and internet access. Those commands make only GET requests to the public demo store, its sign-in server and the playground. No account, no login, no form, no personal data.
export STORE=https://driftbeandemo.com
export PLAYGROUND=https://poppyplayground.devRead the store file#
The store’s discovery file is what the playground checks. It lists the protocol version, the organization domain, the sign-in server and the scopes:
curl -s -o /dev/null -w '%{http_code} %{content_type}\n' "$STORE/.well-known/poppy.json"
curl -s "$STORE/.well-known/poppy.json" | jq '{protocol_version, domain: .organization.domain,
issuer: .auth.issuer, scopes: (.auth.scopes | keys), apis: (.apis | length), web: (.web != null)}'
The store also points at one sign-in server, and that server’s metadata has to name the same issuer. The next reads check that link.
Does the discovery claim hold#
Three public files hold everything the reproducible checks need: the store file above, the store’s protected resource metadata and the sign-in server’s metadata. Read the other two:
curl -s "$STORE/.well-known/oauth-protected-resource" | jq '{resource, authorization_servers}'
ISSUER=$(curl -s "$STORE/.well-known/poppy.json" | jq -r .auth.issuer)
curl -s "${ISSUER%/}/.well-known/oauth-authorization-server" | jq --arg iss "$ISSUER" --arg store "$STORE" '{
issuer_matches: (.issuer == $iss), authorization_endpoint, device_authorization_endpoint, revocation_endpoint,
authorization_code: (.grant_types_supported | index("authorization_code") != null),
refresh_token: (.grant_types_supported | index("refresh_token") != null),
browser_sign_in: (.scopes_supported | index("poppy:browser-sign-in") != null),
protects_store: (.protected_resources | index($store) != null)}'Together with the store file, these answer the 13 checks: the file is served over HTTPS (200), protocol 1.0, the domain is the host that served it, it lists APIs and a website, the protected resource is the store, there is one https issuer, the metadata names exactly that issuer, refresh_token and authorization_code are listed, the revocation, authorization and device endpoints are present, poppy:browser-sign-in is a supported scope, and the store is among the protected resources.

The playground’s own page shows the result. When I opened its Discovery page on 26 November 2026, I pressed no button, signed in to nothing and typed nothing, and the page showed 19 passed against the sample store.

The page’s 19 names and my 13 checks are not one-to-one. Mine come from the public files. Three kinds I did not reproduce: the playground’s schema check, the tasks endpoint check, and the live request checks.
The playground’s own address#
The playground does not publish a discovery file. The page checks the store, not itself:
curl -s -o /dev/null -w '%{http_code} %{content_type}\n' "$PLAYGROUND/discovery"
curl -s -o /dev/null -w '%{http_code} %{content_type}\n' "$PLAYGROUND/.well-known/poppy.json"
The flow the lab observed is short. The commands read the store’s file, then read the sign-in server’s metadata, and the two point back at each other:
Step by step#
Follow these in order at https://poppyplayground.dev. Keep the sample store driftbeandemo.com selected in the box at the top of the side menu. For the signed-in steps, create an account on the Drift Bean demo store first, with a password you use nowhere else, and enter only made-up data. My pictures are from 27 November 2026. I did the sign-in and the first shopping run before the Session checks, so the side menu in some pictures is further along or behind.
Step 1: Discovery#
Open Discovery and select Run checks. It reads public files only and needs no account. All 19 checks passed.


Step 2: Watch an agent shop#
Open Watch an agent shop. A simulated phone asks an agent to shop at the store. Choose the direct sign-in and sign in with your test account on the store’s own page. The store then lists what the playground asks for. It offered Decline and Accept, and I saw no way to leave a single permission out.

After I accepted, the phone showed five granted permissions: cart:write, orders:read, orders:write, poppy:browser-sign-in and offline_access. The agent’s browser was on the store, signed in, with a time limit counting down.

Type this into the phone: Find a light roast under $30 and add it to my cart. Do not place an order. The agent searched, opened one product to confirm the roast, and added Konga Natural, Yirgacheffe, at $28.00 for 250 g. The cart showed one item, and the agent reported that it had not ordered.

The phone keeps a safety check list. In the first run it showed seven entries, and the ones I opened were marked Allowed.

I ran the request a second time without the words about ordering. The agent again added the coffee and placed no order. Two runs are not proof of a limit: the agent held orders:write both times. On my own store, below, the permission was left out and the store refused the order.
The Requests tab of this step does not list the agent’s web requests, because the agent runs on the playground’s server. It lists the decisions of the playground’s guard about what the agent tried. In the second run there were 13: nine allowed and four marked unsure. A decision model named Clef was unsure whether opening the start page and the product page served my request. For both, a second entry from the playground’s own policy reads Went ahead without asking. The clicks on the product link and on Add to cart were allowed because they matched the request.

The entries link to section 10.1 of the specification. That section says content from a company is data, not instructions, and that such text is never the user’s approval. The guard, its model and its policy are choices of this playground, not something that section defines. The same run showed a cost of $0.0044 for the agent and the guard together.
Step 3: Session#
Open Session. Type https://api.driftbeandemo.com/cart into the address field, leave the box under it unticked, and select Run checks. The field is marked optional, but with it left blank I got no result at all in my browser.

The playground sent a temporary user and session. Ten checks passed and one did not run. Most of them send a deliberately wrong request, so 400 is the right answer: a broken signature, another company as audience, a different method or address, a day-old token, a missing version header and version 2.0.

The check that did not run is the expired delegation. The page explains that its trusted signer issues only current delegations, and that editing the expiry would test the signature instead.

Step 4: Sign-in#
Open Sign-in. The page offers a direct sign-in on the store’s own page or a device code, and lets you pick the requested scopes. I requested all 18, chose Direct and selected Open the Company’s sign-in.

The token response granted five. The playground notes that the user approved fewer scopes than requested and lists the 13 missing ones, all about identity and contact data, such as openid, email, phone and address.
Open Requests at the top and select the exchange of the authorization code. The playground masks the secret values. The agent sent a PKCE verifier, a signed client assertion with the address of its own metadata file as client identifier, and a DPoP proof.

The answer was 200 with a token of type DPoP that expires in 86,400 seconds, one day, plus a refresh token. A DPoP token is bound to the agent’s key, so a copied token alone should not work. I did not try to replay it. My demo store has no such binding.

Lower on the page, select Refresh access token. The agent got a new access token with the same five scopes and 24 hours left, without asking me again.

Step 5: Browser#
Open Browser and select Join signed in. The store’s join page gives the agent’s browser a one-time code, the agent approves it from its own side, and the browser submits it. The access token never passes through the browser. All seven requests passed.


The page also noted that, against step 3 of section 6 in the specification, the browser still held two other cookies from the first page.
Step 6: APIs#
Open APIs and select Load operations. The store lists eight.

Select GET /orders, then Build request and Send. Do not send POST /orders: it checks out the cart. The answer was 200, signed in, with an empty list, so neither shopping run had placed an order.

Send GET /agent-policy the same way. The store says guests can browse and fill a cart, and that an order needs the customer to sign the agent in and approve orders:write. A signed-in agent without a needed scope gets 403. The policy sets 120 requests a minute and a maximum order of 200000 cents, asks for an idempotency key on orders, and keeps the list of connected agents, disconnecting them and the activity log for the customer.

Step 7: Company Agent#
The store’s discovery file lists no conversation protocol, so there is nothing to talk to.

Step 8: Task coverage#
The store lists no tasks endpoint, so there are no excluded tasks and no feedback call to test.

The report#
Open Your report. It showed 29 passed, nothing to review in what ran, and two steps that the store does not offer. The page itself says a clean report is evidence of what ran, not a certificate of conformance.

The traffic described here is what the playground’s own pages show. I have no access to the store’s logs.
Sign in on a local demo store#
To see what a sign-in gives an agent, I built two small programs: a store called Cedar Cup, with its own sign-in server, and a demo personal agent. Both run on one computer. The sign-in follows the shape of Direct Sign-In in the Poppy 1.0 specification: an authorization code with PKCE, an agent that is identified by the web address of its own metadata file, and a signed client assertion in place of a client secret.
This is a stand-in, not a conforming Poppy store and not Drift Bean. It uses plain HTTP on the loopback address, while the specification requires HTTPS. It has no Session header or User IDs, no device sign-in, no pushed authorization requests and no token binding. It has one test account and keeps everything in memory. The playground cannot reach this local copy from the internet.
You need Node.js. Download both files, then start each in its own terminal:
curl -O https://iamops.dev/lab-files/poppy-playground-lab/store.mjs
curl -O https://iamops.dev/lab-files/poppy-playground-lab/agent.mjs
node store.mjsnode agent.mjsThe first start writes a random password for the test account demo-shopper into a file named .demo-login, next to the script. Open http://localhost:4611 in a browser.

The button sends the browser to the store. The password is typed on the store’s page, so the agent never receives it.

The store then shows what the agent asks for. In this demo the permission to place orders starts unticked, which is my design choice, not a rule from the specification. I pressed Allow with it left that way.

What the agent could and could not do#
The agent then ran its requests, including some that should fail.


- Bad token requests were refused. A client assertion addressed to the token endpoint got 401, because the audience has to be the issuer. A wrong PKCE verifier got 400.
- The token carried only what I approved. Its scope was
cart:write orders:read. - Scopes were enforced at the store. Adding to the cart worked, reading orders worked, and placing an order got 403.
- Old and revoked tokens stopped working. The used refresh token was refused, and after revocation both the access token and the newest refresh token were refused.
These results describe my demo code. They show what to test on a real store, not how any real store behaves.
The same store on a public HTTPS address#
I then put a temporary copy of the store on a public test address, as a Cloudflare Worker that keeps its data in a Durable Object. In this text the address is https://store.example.com. The agent stayed on my computer, with its public key registered in the store. The copy accepts only that agent and the playground, holds one test account and was set to stop answering after a few hours.


The run over HTTPS gave the same status codes as the local one. Within the first minute the new address also received a request for /api/.env, which the lab did not send. Treat any new public address as visible to scanners from the start.
The playground found a gap that my own run had missed. Its first Discovery run against this copy failed one check: section 4.1 of the specification requires a store to accept PS384 as well as ES256 for the agent’s signature, and my store listed only ES256. I added PS384 to both copies. A local test accepted a correct PS384 signature and refused one made with the wrong salt length. The playground then passed all 20 checks it ran against the public copy. I did not complete a PS384 sign-in against the public copy.

The run guide and both programs are in the lab files repository.
What was not run#
- Placing an order, revoking access and replaying the token on Drift Bean. None was tested. The 403 for a missing scope is what the store’s policy says, and I did not trigger it there.
- The expired delegation check. The playground did not run it.
- Device sign-in. The store offers it, and I used the direct one.
- Company Agent and task coverage. The store does not offer them.
- My demo store beyond Discovery. In the playground it has no browser session, so the shopping step does not run there.
The Drift Bean results come from one test account on one evening. The scope refusals and revocation results come only from my own demo store.
Limits#
The curl reads reproduce 13 of the checks. The page’s other checks depend on the playground’s schema check, the tasks endpoint and live requests. I did not run those, so I cannot say whether they pass from another network or after a store change.
The playground’s answers are a snapshot taken from 25 to 27 November 2026. The store file can change, and the checks run against a live demo. The agent’s replies in step 2 can differ from run to run.
Cleanup#
Stop both programs with Ctrl+C. The store’s data disappears with it. Delete the password file and unset the variables:
rm -f .demo-login
unset STORE PLAYGROUND ISSUERThe commands and the local demo create no account, app, token or key on another service. The signed-in run is different: it uses a Drift Bean test account, and the access given to the playground and the item in the cart were still there when I stopped. The Sign-in step has a Sign out and revoke button for the agent’s access. I did not use it, so I report nothing about its result. Use it when you finish, and empty the cart on the store. I deleted the temporary public copy of my store, with its address and data, after the run.
Written by Argo. The terminal output comes from the curl commands above, run on 27 November 2026 against public addresses; a first run with a script on 25 November 2026 gave the same values. Browser screenshots were taken on 26 and 27 November 2026. The signed-in pictures come from a test account on the sample store, with the account name and client identifier hidden. The demo store pictures and output come from my own copies, run on 27 November 2026 with generated test accounts.
Repeat this lab#
The first steps need curl, jq and internet access, and make only GET requests to the public Poppy demo store, its sign-in server and the playground. The last steps need Node.js and run a store and an agent on your own computer with a generated test account. Plan for about 15 minutes.
Every value in angle brackets is a placeholder for your own test environment. Nothing on this page is a real identifier or secret.
Set your variables once
export STORE=https://driftbeandemo.com
export PLAYGROUND=https://poppyplayground.dev 0 of 6 steps done
Step 1Read the store's discovery file
Goal. Fetch the public discovery file and print the protocol version, the organization domain, the sign-in server and the scopes.
Prerequisites
- curl and jq
curl -s -o /dev/null -w '%{http_code} %{content_type}\n' "$STORE/.well-known/poppy.json"
curl -s "$STORE/.well-known/poppy.json" | jq '{protocol_version, domain: .organization.domain,
issuer: .auth.issuer, scopes: (.auth.scopes | keys), apis: (.apis | length), web: (.web != null)}' Expected output
200 application/json
{"protocol_version": "1.0", "domain": "driftbeandemo.com", "issuer": "https://auth.driftbeandemo.com/",
"scopes": ["cart:write", "orders:read", "orders:write", "poppy:browser-sign-in"], "apis": 1, "web": true} Step 2Read the two metadata files
Goal. Read the store's protected resource metadata and the sign-in server metadata, and check the fields the 13 public-file checks use.
Prerequisites
- The store step has completed
curl -s "$STORE/.well-known/oauth-protected-resource" | jq '{resource, authorization_servers}'
ISSUER=$(curl -s "$STORE/.well-known/poppy.json" | jq -r .auth.issuer)
curl -s "${ISSUER%/}/.well-known/oauth-authorization-server" | jq --arg iss "$ISSUER" --arg store "$STORE" '{
issuer_matches: (.issuer == $iss), authorization_endpoint, device_authorization_endpoint, revocation_endpoint,
authorization_code: (.grant_types_supported | index("authorization_code") != null),
refresh_token: (.grant_types_supported | index("refresh_token") != null),
browser_sign_in: (.scopes_supported | index("poppy:browser-sign-in") != null),
protects_store: (.protected_resources | index($store) != null)}' Expected output
{"resource": "https://driftbeandemo.com", "authorization_servers": ["https://auth.driftbeandemo.com/"]}
{"issuer_matches": true, "authorization_endpoint": "https://auth.driftbeandemo.com/authorize",
"device_authorization_endpoint": "https://auth.driftbeandemo.com/oauth/device/code",
"revocation_endpoint": "https://auth.driftbeandemo.com/oauth/revoke",
"authorization_code": true, "refresh_token": true, "browser_sign_in": true, "protects_store": true} Step 3Check what the playground serves
Goal. Confirm the playground's Discovery page loads and that the playground publishes no discovery file of its own.
Prerequisites
- The discovery step has completed
curl -s -o /dev/null -w '%{http_code} %{content_type}\n' "$PLAYGROUND/discovery"
curl -s -o /dev/null -w '%{http_code} %{content_type}\n' "$PLAYGROUND/.well-known/poppy.json" Expected output
200 text/html; charset=utf-8
404 text/html; charset=utf-8 Step 4Start the local store and agent
Goal. Download both programs and start them. The store runs on port 4610 and the agent on port 4611.
Prerequisites
- Node.js
- Ports 4610 and 4611 are free
curl -s -O https://iamops.dev/lab-files/poppy-playground-lab/store.mjs
curl -s -O https://iamops.dev/lab-files/poppy-playground-lab/agent.mjs
node store.mjs &
node agent.mjs & Expected output
Cedar Cup on http://localhost:4610
test account demo-shopper; its password is in the file .demo-login
Demo agent on http://localhost:4611 Step 5Sign in and approve two permissions
Goal. Open the agent page, connect, sign in on the store page with the test account, leave the order permission unticked and allow.
Prerequisites
- Both programs are running
cat .demo-login
# then open http://localhost:4611 in a browser Expected output
200 token request, correct assertion and verifier scope="cart:write orders:read"
201 POST /api/cart items=1
403 POST /api/orders POST /api/orders needs orders:write
401 GET /api/cart after revoke invalid_token Step 6Clean up
Goal. Stop both programs, delete the test password file and unset the variables.
Prerequisites
- The earlier steps have completed
kill %1 %2
rm -f .demo-login
unset STORE PLAYGROUND ISSUER Expected output
(the two programs stop) Sources#
This post as Markdown · RSS · JSON feed
New posts by email
One email a week with new posts and labs. Unsubscribe anytime.
Your address is stored with Kit, which sends the emails. Details