Skip to content

Add caller context primitive#81

Merged
chubes4 merged 2 commits intomainfrom
issue-76
May 4, 2026
Merged

Add caller context primitive#81
chubes4 merged 2 commits intomainfrom
issue-76

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented May 4, 2026

Summary

  • Adds WP_Agent_Caller_Context as the generic cross-site A2A caller-chain value object and parser.
  • Carries caller context on AgentExecutionPrincipal and resolves it in WP_Agent_Token_Authenticator after token lookup, failing closed on malformed headers before touching tokens.
  • Documents the canonical X-Agents-Api-* header convention, depth ceiling, and host-owned trust boundary.

Fixes #76.

Tests

  • composer test
  • homeboy test --path /Users/chubes/Developer/agents-api@issue-76

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Implementing the caller context substrate, documentation, and smoke tests; Chris remains responsible for review and merge.

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 cross-site agent-to-agent caller context primitive

1 participant