{"openapi":"3.1.0","info":{"title":"AURA Dev Centre","version":"0.1.0","description":"The AURA Dev Centre's operational contract, distinct from the Core protocol (openapi.json). The Core protocol is how two agents transact; this contract is how a developer or agent gets set up to rehearse against the certification bench. It is served by the Dev Centre instance at agentcentre.aura-labs.ai and describes only that instance's agent-facing surfaces. Provisioning is a Dev-Centre operational action and is authored here, never on the Core protocol."},"servers":[{"url":"https://agentcentre.aura-labs.ai","x-aura-environment":"dev-centre","description":"The AURA Dev Centre instance (agentcentre). A non-production environment: it provisions and records the admission gate. It is not a Core and serves no protocol commerce."}],"paths":{"/provision":{"post":{"operationId":"provisionEnvironment","summary":"Issue a signed grant to provision a fresh rehearsal environment","description":"The Dev-Centre operational action that authorizes the presented build credential to stand up an isolated Core context on the certification bench. It charges the credential's quota, mints a tenant namespace, and issues a short-lived, single-use provision grant that the Dev Centre signs. It returns a grant envelope; it does not call the bench and does not materialise the tenant. The agent carries the grant to the returned provision_url, presenting it as X-AURA-Bench-Grant, and the Bench Core returns the manifest and the once-shown sandbox context directly to the agent. Authenticated by the build credential (X-AURA-Sandbox-Key). Not a Core protocol operation. There is no reset; idle environments are reclaimed by the reaper.","security":[{"sandboxKey":[]}],"responses":{"200":{"description":"The credential already holds a provisioned namespace; it stands. The grant envelope is re-issued so the agent can reach the bench, marked already_provisioned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlreadyProvisioned"}}}},"201":{"description":"A fresh provision grant. The signed envelope the agent carries to the bench; the manifest and once-shown sandbox context are returned by the bench, not here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionGrantEnvelope"}}}},"401":{"description":"The build credential is absent, unknown, or revoked. A single unified code, leaking no existence signal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A concurrent provision grant is being issued for this credential. Provision is idempotent; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A provision quota is reached for this credential's identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaError"}}}},"503":{"description":"The grant could not be issued. Anything charged is reclaimed by the reaper; safe to retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/journey":{"get":{"operationId":"getAdmissionJourney","summary":"Read the presented credential's admission journey (the proof of passage)","description":"Returns the seq-ordered actions the Dev Centre recorded for the build credential presented as X-AURA-Sandbox-Key: the journey from a credential issued through provisioning. Scoped to the resolved credential, so a caller reads only its own (API1 by construction). Reset-surviving, because the journey is Dev-Centre state, not the bench's reset-wiped run events.","security":[{"sandboxKey":[]}],"responses":{"200":{"description":"The credential's admission journey.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdmissionJourney"}}}},"401":{"description":"The build credential is absent, unknown, or revoked. A single unified code, so the read leaks no existence signal about another developer's credential.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The Dev Centre store is unreachable. The read is side-effect free and safe to retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/dev-centre-grant-key":{"get":{"operationId":"getGrantKey","summary":"Discover the Dev Centre's grant-signing public key","description":"Publishes the public half of the Ed25519 key the Dev Centre signs provision grants with (ADR-021 inc4d-vi). The Bench Core pins this key from its own configuration to verify grants offline; this endpoint is for operators and verification transparency. Read-only; never publishes private material.","responses":{"200":{"description":"The grant-signing public key and its fingerprint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantKey"}}}}}}}},"components":{"securitySchemes":{"sandboxKey":{"type":"apiKey","in":"header","name":"X-AURA-Sandbox-Key","description":"The build credential the developer holds. A capability handle, never a protocol identity."}},"schemas":{"ProvisionGrantEnvelope":{"type":"object","description":"The signed provision grant the agent carries to the Bench Core. The Dev Centre issues and signs it; the agent presents it to provision_url as X-AURA-Bench-Grant, and the bench returns the manifest and once-shown sandbox context. The Dev Centre never sees the manifest or the sandbox context.","required":["namespace_id","tier","grant","signature","provision_url"],"properties":{"namespace_id":{"type":"string","format":"uuid","description":"The tenant namespace the grant authorizes."},"tier":{"type":"string","description":"The activation tier the grant is bound to. Signed into the grant, so it cannot be forged by the agent that forwards it."},"grant":{"type":"object","description":"The provision grant claims (the provision_grant signature profile), including the signed facts tier, key_fingerprint, and minted_at that the bench reads from the verified grant.","additionalProperties":true},"signature":{"type":"string","description":"The Dev Centre's Ed25519 signature over the domain-prefixed canonical grant, base64. The bench verifies it offline against the pinned key."},"provision_url":{"type":"string","description":"The Bench Core URL the agent POSTs the grant to, presenting it as X-AURA-Bench-Grant."}}},"AlreadyProvisioned":{"type":"object","description":"The credential already holds a provisioned namespace. The grant envelope is re-issued so the agent can reach the bench; status marks it already_provisioned.","required":["namespace_id","tier","grant","signature","provision_url","status"],"properties":{"namespace_id":{"type":"string","format":"uuid","description":"The tenant namespace the grant authorizes."},"tier":{"type":"string","description":"The activation tier the grant is bound to."},"grant":{"type":"object","description":"The provision grant claims (the provision_grant signature profile), including the signed facts tier, key_fingerprint, and minted_at.","additionalProperties":true},"signature":{"type":"string","description":"The Dev Centre's Ed25519 signature over the domain-prefixed canonical grant, base64."},"provision_url":{"type":"string","description":"The Bench Core URL the agent POSTs the grant to, presenting it as X-AURA-Bench-Grant."},"status":{"type":"string","const":"already_provisioned"}}},"QuotaError":{"type":"object","required":["error","message","quota"],"properties":{"error":{"type":"string","const":"quota_exceeded"},"message":{"type":"string"},"quota":{"type":"string","description":"The named quota that was reached."},"tier":{"type":"string"}}},"AdmissionJourney":{"type":"object","required":["domain","credential_status","journey"],"properties":{"domain":{"type":"string","description":"The verified identity anchor the credential is bound to."},"credential_status":{"type":"string","description":"The build credential's status (e.g. active)."},"journey":{"type":"array","description":"The recorded actions, ordered by seq.","items":{"$ref":"#/components/schemas/JourneyAction"}}}},"JourneyAction":{"type":"object","required":["seq","action","namespace_id","at","detail"],"properties":{"seq":{"type":"integer","description":"Monotonic per-credential sequence; the ordering invariant."},"action":{"type":"string","description":"The recorded action (e.g. credential.issued, provisioning.requested, grant.issued)."},"namespace_id":{"type":["string","null"],"description":"The tenant the action concerns, when applicable."},"at":{"type":"string","description":"When the action was recorded."},"detail":{"type":"object","description":"Action-specific detail.","additionalProperties":true}}},"GrantKey":{"type":"object","required":["public_key","algorithm","kid","is_ephemeral"],"properties":{"public_key":{"type":"string","description":"The raw 32-byte Ed25519 public key, base64."},"algorithm":{"type":"string","const":"Ed25519"},"kid":{"type":"string","description":"The key fingerprint: hex sha256 of the raw public key bytes."},"is_ephemeral":{"type":"boolean","description":"True when the Dev Centre is running an ephemeral key (no DEV_CENTRE_GRANT_SIGNING_KEY provisioned); such a key cannot be pinned by a bench."}}},"Error":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","description":"A stable machine-readable error code."},"message":{"type":"string","description":"A human-readable explanation."}}}}},"x-aura-signature-profiles":{"status":"normative","algorithm":"Ed25519","description":"The signature profiles the Dev Centre signs under. The Dev Centre is the signing authority for the provision grant (ADR-021 inc4d-vii-b-2, DEC-228): it signs each grant and the Bench Core verifies it offline against the Dev Centre's pinned public key. Each profile names what is signed, how the payload is assembled, and which operations it applies to.","profiles":[{"id":"provision_grant","description":"A Dev-Centre-signed grant authorizing one bench relay operation on one tenant namespace. agentcentre (the authority) signs a short-lived, op-scoped, single-use grant; the Bench Core verifies it offline against agentcentre's pinned public key. It governs the internal control-plane relay, not an agent-facing protocol operation, and is distinct from the actor-plane participation token.","appliesTo":{"operations":["bench relay control plane: provision, reap, status, clearing-status (off-contract, internal)"]},"canonicalization":"domain-prefixed recursive canonical JSON","domainPrefix":"AURA-PROVISION-GRANT\n","payloadClaims":["op","credential_hash","namespace_id","domain","aud","kid","iat","exp","jti"],"requiredHeaders":["X-AURA-Bench-Grant"],"freshnessWindowSeconds":300,"notes":{"canonicalization":"The signed bytes are the domain prefix followed by recursive canonical JSON of the claims (object keys sorted at every depth). Byte-identical between the Dev-Centre signer and the Bench Core's replicated verifier.","op":"One of provision, reap, status, clearing; the bench requires op to equal the URL verb (BFLA).","namespace_id":"The bench requires namespace_id to equal the URL namespace (BOLA / confused-deputy).","aud":"The bench's host; the bench requires aud to equal its canonicalHost (GAP-05 host binding).","jti":"Single-use: the bench consumes it in seen_nonces (key bench-grant:<jti>), transactionally with any write.","kid":"The sha256 fingerprint of agentcentre's public key; the bench requires it to name the pinned key.","verification":"Ed25519 over the domain-prefixed payload against the pinned key, then claim shape, then freshness; fail-closed.","provision_facts":"A provision grant additionally binds three signed facts beyond the core claims: tier, key_fingerprint, and minted_at. The agent forwards the grant to the bench, so binding these into the signature stops it forging its tier or its mint provenance, and the bench reads them from the verified grant. The other bench verbs (reap, status, clearing) carry only the core claims."},"example":{"description":"A worked provision grant: the claims and the domain-prefixed canonical payload the Dev Centre signs.","claims":{"op":"provision","credential_hash":"dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd","namespace_id":"22222222-3333-4444-8555-666666666666","domain":"vector.example","aud":"sandbox.aura-labs.ai","kid":"26f3cfc4e47f703666721413ce07c50f3565672f4aecc104a59835e7fc70b52e","iat":1753200000,"exp":1753200120,"jti":"benchgrantvector0001"},"signing_payload":"AURA-PROVISION-GRANT\n{\"aud\":\"sandbox.aura-labs.ai\",\"credential_hash\":\"dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd\",\"domain\":\"vector.example\",\"exp\":1753200120,\"iat\":1753200000,\"jti\":\"benchgrantvector0001\",\"kid\":\"26f3cfc4e47f703666721413ce07c50f3565672f4aecc104a59835e7fc70b52e\",\"namespace_id\":\"22222222-3333-4444-8555-666666666666\",\"op\":\"provision\"}"}}]}}