On this page

0109: Tool authorization, grants and SecretRef

Status: Proposed (default; pending owner confirmation)

Amends ADR-0095.

Context

Tools combine schema validation, credentials, authority and application acceptance. Collapsing these checks obscures why dispatch is rejected and risks leaking secrets.

Decision

Dispatch has four distinct stages: validate/decode, authenticate required SecretRefs, authorize with a held attenuable Grant (including narrowed argument scope and declared network hosts), then accept via precondition or approval hook. Grant handles cannot be forged by ordinary code. SecretRef values reach transport only; journals, events and errors carry names, never values.

Consequences

Rejections remain attributable to invalid input, missing authentication, insufficient authority or non-acceptance. Network restrictions use Net.restrict; secret handling can be checked by asserting journal contents.