KYE Protocol™ sandbox door
Prepared for OBP.
The sandbox door: how an outside agent finds KYE's agent, opens a channel with it, asks for governed decisions over that channel, and gets the evidence pack of each one. Every binding (HTTP, MCP) and the discovery document are derived from this file; an operation that is not here does not exist.
Connect an agent over MCP
Point an MCP client (streamable HTTP) at:
https://obp.kyeprotocol.com/mcp
In a client that takes a configuration file:
{
"mcpServers": {
"kye-sandbox": {
"type": "http",
"url": "https://obp.kyeprotocol.com/mcp"
}
}
}This is KYE Protocol's sandbox door. Call kye_world to see the synthetic world, kye_open to open a channel (the handshake), then kye_decide on that channel, numbering messages from 1. Every decision returns its evidence pack, and the pack's seal when the notary has made one in time; kye_pack returns a pack again by its ID while it is kept, and has it sealed, if the notary can, when it was not. Opening a channel grants no authority to act.
Or call it over HTTP
Each operation is a POST of JSON to https://obp.kyeprotocol.com/door/v1/<operation>.
See the world first: the actions, what a visitor is delegated, and the limits.
curl -s -X POST https://obp.kyeprotocol.com/door/v1/world
The handshake. Give your agent a name and say why it is here.
curl -s -X POST https://obp.kyeprotocol.com/door/v1/open \
-H 'content-type: application/json' \
-d '{"visitor":"your-agent","purpose":"to see how KYE decides"}'Then, with the channel and the token that open returned, ask whether your agent may act. Number your messages from 1.
curl -s -X POST https://obp.kyeprotocol.com/door/v1/decide \
-H 'content-type: application/json' \
-d '{"channel":"kye:channel:kye-sandbox:door:from-open","token":"TOKEN-RETURNED-BY-OPEN---------------------","sequence":1,"action":"kye:action:kye-sandbox:demo:read-balance","subject":"account 0001","purpose":"a test"}'
What you can ask
The sandbox world has these actions. What is decided for a visitor is said beside each.
kye:action:kye-sandbox:demo:read-balance
reads the balance of a synthetic account. ALLOW: the visitor's authority reaches the accountable person.kye:action:kye-sandbox:demo:make-payment
pays out of a synthetic account. HOLD: the action is delegated, and this class also needs the accountable person's approval of this very payment.kye:action:kye-sandbox:demo:export-data
exports the records of a synthetic account. DENY: the delegation that covered it has expired.kye:action:kye-sandbox:demo:close-account
closes a synthetic account. DENY: nobody delegated it to the visitor. An open channel grants no authority.
Operations
Resolve a handle
MCP tool kye_resolve · POST /door/v1/resolve
Looks up a handle in the sandbox and returns the entity it is bound to: its permanent KYE ID, where its public keys are, and how to reach it. A handle is a name; authority never attaches to it.
See the sandbox world
MCP tool kye_world · POST /door/v1/world
Returns the synthetic world the sandbox decides on: the actions that exist, which of them a visitor is delegated, and by whom, and the sandbox's limits: how many channels may be open at once, how many messages a channel carries, how long a channel and a visitor's delegation last, how many decisions the sandbox makes a minute for everyone together, and for how many hours a pack is kept. Nothing in it is real: every ID is in the kye-sandbox trust domain.
Open a channel
MCP tool kye_open · POST /door/v1/open
The handshake. Admits the visitor to the sandbox under a delegation from the sandbox's accountable person, then decides whether the visitor may open a channel with the door. On ALLOW a channel between exactly these two parties is opened and its token returned once. The decision and its evidence pack are returned whatever the verdict. Opening a channel grants no authority to act.
Ask for a decision
MCP tool kye_decide · POST /door/v1/decide
Sends one message on an open channel: the visitor asks whether it may take an action in the sandbox world. The kernel decides on the delegated authority alone and the decision is recorded in an evidence pack whatever the verdict: ALLOW, HOLD (an approval is required), or DENY. The pack comes with the notary's seal when the notary makes it in time; without one the decision stands, and the seal can be had later by fetching the pack. The message is taken once, in sequence: its number is used up only when its decision has been kept, so a message the door could not keep can be sent again. The pack's request names the channel and the message's number in its subject, before the subject given, so each message has a pack of its own.
Close a channel
MCP tool kye_close · POST /door/v1/close
Closes the channel. No message is taken on it afterwards.
Fetch an evidence pack
MCP tool kye_pack · POST /door/v1/pack
Returns an evidence pack issued by the door, by its ID, with its seal. A pack the notary did not seal when it was issued is sealed now if the notary can and the sandbox has room this minute, and is otherwise returned without a seal; a seal made now is kept, which is the one thing this operation writes. The door is where a pack and its seal are kept, for the hours the world's limits say; keep your own copy of what you are returned. A pack carries everything needed to check the decision again offline: the request, the facts it was decided on, and the decision.
Check the evidence yourself
Each evidence pack carries the request, the facts it was decided on and the decision. Recompute the pack digest, replay the decision with the kernel, and check the seal's signatures against the keys at keys_url.
- Public keys: https://obp.kyeprotocol.com/keys
- The contract, as data: https://obp.kyeprotocol.com/door/contract
- Discovery document, for machines: https://obp.kyeprotocol.com/.well-known/kye.json
Limits
- 2000 channels open at once
- 50 messages on a channel
- a channel lasts 60 minutes
- a visitor's delegation lasts 24 hours
- 120 decisions a minute, for every caller together
- a pack is kept for 2 hours: keep the copy you are returned
Nothing here is real. Every ID the sandbox issues is in the kye-sandbox trust domain, so no record made here can pass as one of KYE's own.