Reactor contribution points
Every service the SDK lets a host replace is a Datalayer
Reactor contribution point. Python and
TypeScript define the same points, with the same ids and contracts (members
spelled snake_case in Python, camelCase in TypeScript), listed in
protocol/reactor-points.json.
Each SDK's tests hold it to that file, so a point added to one SDK and not the
other fails CI.
Resolution​
- A lower
orderwins. The SDK's own defaults contribute atorder100, so any host contribution with a lower order replaces them. - Two contributions at the winning order are ambiguous and fail closed: the SDK refuses rather than pick one by load order.
- A point with no default and no contribution fails closed when the SDK needs
it (
no active … contribution).pap.company.api,pap.company.mcpandpap.company.websiteare optional: with none, the company publishes no API or MCP server, and serves no pages beyond the protocol's own. So ispap.company.rateLimit(with none, no limit beyond the protocol's own), and so arepap.telemetry(with none, nothing is emitted),pap.operatorSigner(with none, requests go unsigned) andpap.approvalSurface(with none, destructive live-session actions are refused). pap.company.operationExecutorresolves per action: the lowest-order executor whoseactionnames the operation's performs it; two at that order leave the operationperforminginstead of performing it twice.- Contributions follow their plugin: disabling or unregistering a plugin removes what it contributed, and the SDK reads each point when it needs it, never caching a provider.
Personal agent​
| Point | Python | TypeScript | Responsibility | SDK default | Tenant-scoped |
|---|---|---|---|---|---|
pap.discoveryTransport | DISCOVERY_TRANSPORTS | DiscoveryTransports | Credential-free, bounded public metadata transport | httpx / fetch | |
pap.urlSafetyPolicy | URL_SAFETY_POLICIES | UrlSafetyPolicies | HTTPS, DNS, IP, and redirect policy for metadata URLs | public | |
pap.clock | CLOCKS | Clocks | Time for every expiring protocol state | system | |
pap.randomSource | RANDOM_SOURCES | RandomSources | Cryptographically secure randomness | system | |
pap.signer | SIGNERS | Signers | The agent's client assertions and delegations (keys stay in custody) | — (host contributes) | |
pap.tokenStore | TOKEN_STORES | TokenStores | Refresh tokens behind opaque references | — (host contributes) | |
pap.pairwiseUserIdStore | PAIRWISE_USER_ID_STORES | PairwiseUserIdStores | Stable pairwise user IDs by tenant, local user, and issuer | — (host contributes) | yes |
pap.authorizationStateStore | AUTHORIZATION_STATE_STORES | AuthorizationStateStores | Expiring one-use sign-in state (put, take; get SHOULD, read without consuming, since 0.37.2) | — (host contributes) | |
pap.cache | CACHES | Caches | Bounded cache of public metadata | memory | |
pap.browserHandoff | BROWSER_HANDOFFS | BrowserHandoffs | Opens a sign-in page on a trusted surface | — (host contributes) | |
pap.browserJoin | BROWSER_JOINS | BrowserJoins | The agent's own browser: loads the join form's one-time code and submits the form | — (host contributes) | |
pap.sessionSigner | SESSION_SIGNERS | SessionSigners | The Session JWT of each request, signed with a delegated key per User ID, private keys kept in custody | — (host contributes) | yes |
pap.dpopProver | DPOP_PROVERS | DpopProvers | The DPoP proof of each request, signed with a key of its own per Company, never a delegated key or a key from jwks_uri | in-memory | yes |
pap.operatorSigner | OPERATOR_SIGNERS | OperatorSigners | The operator signature of each request that carries the Session header (spec 5.3, Web Bot Auth), by a key the operator publishes, never a delegated key, a DPoP key or a key from jwks_uri. None contributed, and requests go unsigned | — (host contributes, optional) | yes |
pap.refreshTokenLock | REFRESH_TOKEN_LOCKS | RefreshTokenLocks | Serializes refresh token rotation | in-process | |
pap.protectedInput | PROTECTED_INPUTS | ProtectedInputs | Collects credentials and codes outside the model | — (host contributes) | |
pap.retryPolicy | RETRY_POLICIES | RetryPolicies | When a refused request is retried | default | |
pap.rateLimitBudget | RATE_LIMIT_BUDGETS | RateLimitBudgets | Per-company request budget shared across tasks | in-process | |
pap.telemetry | TELEMETRY_SINKS | TelemetrySinks | Receives each finished protocol stage, redacted by construction | — (feature off) | |
pap.approvalSurface | APPROVAL_SURFACES | ApprovalSurfaces | The user's approval of an operation, and in Python of a destructive live-session action | — (refused without) |
The discovery transport follows each language's HTTP idiom: Python's gets one
approved URL within its MetadataFetch bounds and connects only to the
addresses the URL safety policy approved; TypeScript's is a fetch, each URL
approved by the policy first.
Company​
| Point | Python | TypeScript | Responsibility | SDK default | Tenant-scoped |
|---|---|---|---|---|---|
pap.company.store | COMPANY_STORES | CompanyStores | Every record a company keeps (versioned JSON) | memory | |
pap.company.accounts | COMPANY_ACCOUNTS | CompanyAccounts | Credentials and second factors for Mediated Sign-In | — (host contributes) | |
pap.company.agent | COMPANY_AGENTS | CompanyAgents | The company agent answering conversations | — (host contributes) | |
pap.company.operationExecutor | OPERATION_EXECUTORS | OperationExecutors | Performs an approved operation, by action | — (host contributes) | |
pap.company.clientPolicy | CLIENT_POLICIES | ClientPolicies | Allows or blocks personal agents by client_id | allow | |
pap.company.clientResolver | CLIENT_RESOLVERS | ClientResolvers | Fetches an agent's metadata and JWKS | https | |
pap.company.operatorDirectory | OPERATOR_DIRECTORIES | OperatorDirectories | Reads an operator's published keys, for a company that checks operator signatures | https | |
pap.company.replayCache | REPLAY_CACHES | ReplayCaches | Remembers assertion and Session JWT IDs once | store | |
pap.company.api | COMPANY_APIS | CompanyApis | The company's OpenAPI API | — (feature off) | |
pap.company.mcp | COMPANY_MCP | CompanyMcps | The company's MCP server | — (feature off) | |
pap.company.website | COMPANY_WEBSITES | CompanyWebsites | The company's website pages, for visitors and joined browsers; an action that needs approval returns an operation (Operations 4) | — (feature off) | |
pap.company.rateLimit | COMPANY_RATE_LIMITS | CompanyRateLimits | How often one personal agent and one signed-in account are answered: 429 rate_limited with Retry-After | — (no limit) |
Tenants​
Four contracts are tenant-scoped: pap.pairwiseUserIdStore receives the
tenant_id (tenantId) with each request, pap.sessionSigner receives it in
each SessionJwtRequest, pap.dpopProver in each DpopProofRequest, and
pap.operatorSigner in each OperatorSignatureRequest. The SDK
always passes the tenant of the call it is making, so a host keeps one tenant's
pairwise IDs, delegated keys, DPoP keys and operator keys apart from another's; the tests check
that one tenant's ID is never returned for another and that each Session JWT is
asked for the request's own tenant. A company is one tenant of its own points: a host serving several
companies builds one company (and one Reactor) for each.