Shrink-Only Delegation

Simulated: no real agent, service, or token standard is used. The root key stays in this page. This is a teaching model, not a production token format.

The grant shrinks at each handoff Four columns: You, Agent A, Agent B, Agent C. Arrows join them, and a check happens at every arrow. Under each name, bars for scopes, spending cap, and time get shorter at each arrow. The bars update as you hand off.

Agent chat

    Hand off

    Scopes

    Token chain: what the receiving tool sees

    Live check with crypto.subtle. Each tag is HMAC-SHA256 of the earlier tag and the caveat.

    Try this

    1. Press Step twice. Watch the bars shrink and the chat show each hop.
    2. Press Start over. Hand off to B, but tick email.send. Read the reason it fails.
    3. Hand off to B and C. Press Tamper, then Verify chain. See which hop fails first.

    Pain point

    A second agent can end up with more power than the first agent had.

    Problem statement

    A sub-agent that reuses its parent's key has all of the parent's power. How might we hand work on safely?

    What sparked it

    Mozilla's W3C WebExtensions notes (issue 1041) say no browser primitive lets a user scope or withdraw an agent's access.

    Why this approach

    Each handoff may add limits, never remove one. The root key checks the whole chain.

    Hypothesis tested

    We believed that a hash of the earlier tag lets each hop only add limits. If it holds, a widened token fails.

    How to try it

    1. Open the Prototype tab. Press Play.
    2. Press Start over. Hand off from A to B, and ask for more than A has.
    3. Hand off from B to C. Press Verify chain.
    4. Press Tamper. Verify again.

    What this does not do

    Notes

    Traces

    Prompts used to make this prototype
    StepPromptModelToolDate

    Cost

    Cost to make this prototype
    StepModelInput tokensOutput tokensCost (USD)
    Total

    Measured: the author runs used 186,075 tokens in total. Estimated: the split into input and output tokens (90 percent input, 10 percent output) and the dollar cost, at $2 input and $10 output per million tokens for Sonnet 5.5 (about $0.52). The run reported one total only. The lead session's planning, research, and publishing are not included. The prompts in the Traces section are listed in the order they were given.