Skip to content

Add execution principal context#26

Merged
chubes4 merged 3 commits intomainfrom
agents-api/execution-principal
May 1, 2026
Merged

Add execution principal context#26
chubes4 merged 3 commits intomainfrom
agents-api/execution-principal

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented May 1, 2026

Summary

  • Add AgentsAPI\AI\AgentExecutionPrincipal as an immutable runtime context for acting user, effective agent ID/slug, auth source, request context, optional token ID, and request metadata.
  • Add user-session and agent-token construction helpers plus the agents_api_execution_principal resolver filter for host plugins.
  • Expose and document the primitive while keeping access policy, scoped grants, token storage, and conversation-loop behavior out of scope.

Source

Tests

  • composer test - passed

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the execution principal primitive, resolver hook, smoke tests, and docs; Chris remains responsible for review and validation.

@chubes4 chubes4 merged commit 5a430b6 into main May 1, 2026
1 check passed
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.

Add generic agent execution principal

1 participant