AI Focus

passkey attenuated capabilities

Static API tokens and ambient OAuth cookies grant broad account authority rather than narrow task limits. This lab mints short-lived, scope-bound, spend-capped ECDSA P-256 and WebAuthn PRF capability proofs enforced server-side inside a Cloudflare Durable Object SQLite ledger.

Hypothesis

Non-extractable WebCrypto ECDSA P-256 keys combined with WebAuthn Level 3 prf confirmation and Durable Object spend ledgers enforce verifiable per-action scope, TTL, replay nonce, and cumulative dollar caps without exposing long-lived account secrets.

What confirms it: Attempting to exceed dollar caps, reuse nonces, tamper payload fields, or call outside granted tool scopes rejects server-side in DelegationLedger while valid attenuated tokens execute cleanly.

What falsifies or bounds it: Key derivation latency or frequent passkey user-presence prompts create UX friction that pushes developers back to ambient OAuth sessions.

WebCrypto ECDSA P-256 and WebAuthn Level 3 PRF capability minter issuing scope-bound, dollar-capped, short-TTL tokens verified against a Cloudflare Durable Object spend ledger. Open passkey attenuated capabilities full screen ↗

What this lab tests

Static bearer keys and ambient session cookies grant unbounded authority when delegated to an automated tool loop. What does cryptographically attenuated delegation look like between a browser user and an edge Worker?

Passkey Attenuated Capabilities (GitHub) mints scope-restricted, dollar-capped, short-TTL ECDSA P-256 proofs (with optional WebAuthn Level 3 prf hardware confirmation alongside non-extractable crypto.subtle session keys) and verifies every signature, expiry, nonce replay check, and cumulative spend cap in a Cloudflare Durable Object SQLite ledger (DelegationLedger).

Open questions

  • What delegation lifetime and spend threshold minimizes WebAuthn ceremony interruptions while preserving bounded blast radius?
  • Can delegated sub-tokens chain offline attenuation cleanly without hitting the Durable Object ledger on every read?

Iteration log

  • — Built ECDSA P-256 + WebAuthn PRF capability minter backed by SQLite Durable Object DelegationLedger and top-of-page verification code.
  • — Reordered workbench above setup snippets, added live signing/passkey/edge latency telemetry, unified CSP-safe DOM syntax highlighting, hardened 700px embed layout, and enforced no-cache static headers via Worker routing.

Primitives tested: WebAuthn Level 3 PRF, crypto.subtle ECDSA P-256, Signed JSON Capability Tokens, Durable Object SQLite.

This is an active lab under /labs/ and stays off the main RSS feed until graduated into a full essay.

More in delegated authority & keyless execution

Connected labs

← delegated authority & keyless execution · All labs