Skip to content

feat(agentstack): enforce delegation expiry#79

Closed
russo2100 wants to merge 1 commit into
profullstack:masterfrom
russo2100:fix-delegation-expiry
Closed

feat(agentstack): enforce delegation expiry#79
russo2100 wants to merge 1 commit into
profullstack:masterfrom
russo2100:fix-delegation-expiry

Conversation

@russo2100

Copy link
Copy Markdown

Addresses PRD §10 open question ('hard-block out-of-scope operations').

Key changes to packages/agentstack/src/index.ts:

  1. New export isGrantActive(grant, now)
  2. New AgentStack.listDelegations(filter?)
  3. New AgentStack.hasActiveDelegation(ownerDid, agentDid, scope)
  4. Guard in delegate(): throws if expiresAt <= now

This ensures expired grants are not silently accepted or acted upon.

@ralyodio ralyodio closed this Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants