Guides on the AAA contract between wendy stack and SaaS stack, covering responsibility split, two-key authority, and cryptographic guarantees for authentication, authorization, and issuance.
Ships in wendy-aaa-interop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The AAA contract defines who is trusted for what across the control-plane services (wendy-auth, Wendy Cloud, pki-core, wendy-proxy) and the cryptographic invariants that hold even when one of them is compromised. It exists because Wendy serves critical-infrastructure partners: a breach of the SaaS control plane must never translate into the ability to act on a customer's fleet (§1).
| Service | Owns | Does NOT own |
|---|---|---|
| wendy-auth | Authentication; the identity graph (tenant + user + group(s)); IdP federation; issuance of identity assertions (tokens/SETs); the realm's own lifecycle (creation, tenant-identity minting, suspension, deletion) and exclusive ownership of a verified email domain | Authorization decisions; certificates; entitlements |
| Wendy Cloud | Authorization (group→role→entitlement mapping) + org-native lifecycle within a tenant + orchestration | Authentication of humans; minting any private key or certificate; minting tenant identity; initiating realm creation, suspension, or deletion |
| pki-core | Certificate issuance/revocation; enforcement of the platform + per-tenant policy ceiling; the cryptographic root of tenant isolation | Deciding who a principal is (defers to wendy-auth) or what they may do (defers to cloud), except as bounded by policy caps |
| wendy-proxy | Pure enforcement: fronting the image registries, deriving tenant scope from the device cert, enforcing a live per-device image assignment | Any issuance; any authorization decision of its own |
(§1)
authority(action) = identity(wendy-auth) ∩ authorization(cloud) ∩ policy-cap(pki-core)
No single party manufactures authority (§3):
| Party alone has… | …and is missing | Result |
|---|---|---|
| Cloud: the authorization decision | the principal's key / signature | cannot get a credential issued that acts as the principal |
| Principal: identity + key | authority beyond what cloud grants | cannot self-escalate past cloud's grant |
| pki-core: issuance power | both proofs (it refuses without them) | mints only under identity ∩ authorization, capped by policy |
State guarantee (B) honestly; never claim more (§2).
Transport (mTLS peer, or GCP-WI-OIDC on the inter-service fabric) names the service making the call — never a principal's authority. Principal authority always rides as an in-message signed artifact: a wendy-auth token, an operator signature + CSR, a cloud grant, a TSA token, or a SET. A relay (e.g. cloud carrying an operator request to pki-core) can withhold that artifact, but never forge it (§4.3, §11.1).
entitlement:{category}:{permission}:{effect}, deny-wins, vocabulary = the wendy-agent gRPC method set ∪ cloud-defined entitlements. The cloud-mediated device path (postbox polling §5.3, image pull §5.7) uses an identity-only device cert + operator-signed requests / live checks instead.(§4.2)
One id per end-to-end flow, not per service and not per mutation: each service adopts the inbound id if the request already carries one, mints a fresh id only when it is the true origin, and propagates it unchanged on every downstream call — persisting it into every audit record and every emitted signal for that flow. Never regenerate mid-flow (§11.2).
The wendy stack (wendyos / wendy-agent) must ALWAYS be able to run without the SaaS stack. Before shipping any interop change, consult the wendy-self-hosted skill: keep the self-hosted path intact, or create it where it doesn't exist yet. A SaaS-only feature is an incomplete feature.
This skill distills the AAA Contract v0.21 (Approved 2026-08-29). The living contract lives in Linear: AAA Contract — Authentication, Authorization, Accounting. It is versioned and evolving: check it for flow-level detail, and if it disagrees with this skill, the contract wins — then update this skill.
What SKILL.md sets; muted values are Claude Code's defaults
/wendy-aaa-interop:wendy-aaa-interopfrom wendy-aaa-interop
npx claudepluginhub wendylabsinc/claude-skills --plugin wendy-aaa-interopOther plugins' skills for the same job