Approval Protocol
The implementation-independent contract. Generated from the canonical spec
protocols/specs/approval.md as of 2026-11-15 (8262cce). Implemented by
Granite.
Approval providers protect human consent and action auditability.
Core Objects
ApprovalRequest: what an app or agent is asking to do.ApprovalDecision: what the user decided.Grant: continuing authority created by an approved request.Verification: the enforcing service's check that a request or grant covers a concrete action.
Required Fields
An approval request must include:
owner_user_idrequester_app_id- optional
requester_chirp_sub(the requesting agent's ChirpAuth sub) request_typerequested_actionrequested_resourcerequested_scopesrisk_level
Request Types
one_time_action: one concrete action; does not create a grant.storage_grant: authority overstorage:{provider}:{resource}.capability_grant: authority to call a capability gateway.delegation_grant: authority for one agent/app to delegate to another.
Grant Service Id
Grant service_id names the enforcement point, not the UI that approved it.
- Storage grants use
storage:{provider_id}derived from the requested storage resource. - Capability grants use the capability gateway service id.
- Delegation grants use
pigeon. - Platform grants (below) use the service named by their resource's prefix:
social-graph:internal:connectedissocial-graph.
Platform Grants
A platform grant is continuing authority the platform operator issues to a
service's machine identity, for the service's own work, with no request and
no person behind it. Its grantor is platform (a person's grant has no
grantor key); it still carries owner_uid ("platform") and request_id
(the nil uuid) so existing clients decode it. Its subject is one machine
(subject_app_id and subject_chirp_sub), and a verification approves it
only for that machine. Granite's implementation:
services/granite/docs/platform-grants.md.
Granite is one Approval UI implementation. It is not the protocol name and not the enforcement point for storage, capability, or delegation grants.
Invariant
Approval records may be exported to user storage for readability, but exported copies do not authorize actions. The enforcing service must verify the approval request or grant with the Approval Protocol authority.