Open security points
What is open today in both SDKs (the Python package personal_agent_protocol
and the npm package @datalayer/personal-agent-protocol), both roles: residual
risks, what a deployment must provide, and the questions the PAP draft leaves
open. Anything fixed is gone from this page; the
changelog
says what each release changed. Report a new problem as the
support page says.
Residual risks in the SDKsโ
- Bearer tokens by default. The reference companies bind their tokens with DPoP
only when configured to (ยง4.5). By default they issue Bearer tokens, which they
accept only beside a Session JWT whose
athcovers the token. - The default DPoP keys live in memory.
InMemoryDpopKeysis for one process. A key lost with it means refreshing, because refresh tokens aren't bound; a bound access token stops working at once. A host contributes a durableDpopKeyCustody. - Known-client records grow with every agent that authenticates. A
company keeps one
KnownClientrecord perclient_id(the extensions the agent declared), written at its first successful client authentication and never expired. Only an agent with valid metadata and keys adds one, but the set is unbounded. Bound it with the company's client policy (pap.company.clientPolicy) or a store that ages records out. - The account directory throttles its own checks. The company limits
Mediated Sign-In attempts (per account identifier, per agent and user, per
Session, and wrong codes per account), then answers
429 rate_limited.AccountDirectory.authenticatereceives aSignInContextand must still throttle its own credential checks, which other paths may reach.
What a deployment must provideโ
The SDKs ship portable defaults that are correct in one process. A deployment replaces them where it runs more than one:
- Company store. Only an in-memory store ships (
MemoryCompanyStore). Replicas, restarts, and rollbacks need a durable, sharedCompanyStorewith atomiccreate,take, andreplace(check_store/checkStorehold a backend to the contract). The default replay cache and the sign-in attempt budgets live in that store, so they are only as shared as the store is. A contributedpap.company.replayCachemust be shared across replicas the same way. - Key custody. The signer, the agent's private keys, and the company's
keys are the host's. Production keys belong in a KMS or HSM behind a
contributed
pap.signer(or an equivalent remote signing service), and durable delegated keys behind aDelegatedKeyCustody. - Agent-side state. The core plugin contributes no token store, pairwise
user ID store, authorization-state store, browser handoff, protected input,
or approval surface; the host contributes them (the
papCLI host keeps local files, under a lock, for one user). Refresh tokens must be encrypted at rest. The refresh token lock and the rate-limit budget default toin-process: an agent running several processes contributes shared ones. - Network policy for Node. The portable TypeScript bundle can only check
URLs textually; DNS resolution and address pinning are in the
./serverentry (createResolvingFetch). A Node host that builds its own company or identity client, rather thanbuildCompany, must pass it asfetch.
Open questions in the PAP draftโ
The SDKs take a position on each; another implementation may take another, and the conformance runner reports the difference.
workingwhile a request is acted on. The reference companies setworkingthe moment they accept a request and clear it once they have replied, within the same request; a company that acts later keeps ittruemeanwhile (ยง8.7), and a personal agent that wants the whole reply reads until it isfalse.
Interoperability not yet exercisedโ
- The
adoniscompany implementation has not been run against these SDKs: it has no runnable example. - Problems found in
pi-poppy(operations deduplicated across users, a draft 0.2 browser assertion accepted at/oauth/token, noWWW-Authenticateon a replayedjti, noresource_metadatain the MCP401challenge) were reported to that project; they are its to fix.