Skip to content

delegated-tools: opaque claims.context passthrough (preserve consumer token format + per-dispatch ids) #87

Description

@drewstone

From gtm-agent adopting the bridge (gtm-agent#250): DelegatedToolClaims is fixed to {workspaceId, allowedTools, expiresAt}. gtm's bespoke token carried a dispatchId used as the hub idempotency key (${dispatchId}:${name}). On adoption that had to be reconstructed as SHA-256(bearer)[:32] inside the invoke seam — behavior-equivalent (one scope per dispatch) but the key VALUE changed, and old-format tokens don't verify under the new HMAC (an in-flight-deploy 401 window). An optional opaque context claim (signed, echoed back in the verified claims) would let a consumer carry dispatchId and preserve its exact token shape → truly zero-behavior-change adoption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions