Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

Implement two approaches for discovering which publishers have authorized an agent:

  1. "Pull" approach - fetch_agent_authorizations() checks publisher adagents.json files in parallel to extract property IDs and tags
  2. "Push" approach - ADCPClient.list_authorized_properties() asks the agent what it's authorized for

Adds AuthorizationContext class to encapsulate authorization info with comprehensive tests.

Test Plan

  • ✅ AuthorizationContext extracts property IDs and tags correctly
  • ✅ fetch_agent_authorizations fetches multiple publishers in parallel
  • ✅ Unauthorized publishers are filtered from results
  • ✅ Missing/invalid adagents.json files are silently skipped
  • ✅ Connection pooling is supported for performance

🤖 Generated with Claude Code

bokelley and others added 2 commits November 16, 2025 18:59
Implement two approaches for discovering which publishers have authorized an agent:

1. "Pull" approach: fetch_agent_authorizations() - Check publisher adagents.json files
   in parallel to see which ones authorize your agent, extracting property IDs and tags.

2. "Push" approach: ADCPClient.list_authorized_properties() - Ask the agent directly
   what publishers it represents (already existed, now documented).

Add AuthorizationContext class to encapsulate authorization info (property IDs, tags,
raw property data). Includes comprehensive tests covering success, failure, filtering,
and connection pooling scenarios.

Resolves #53

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
Remove separate AUTHORIZATION_DISCOVERY.md file and integrate
content into README as a subsection under Publisher Authorization
Validation. Keeps documentation consolidated in a single location.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley merged commit e7d0696 into main Nov 17, 2025
7 checks passed
bokelley added a commit that referenced this pull request Nov 18, 2025
* feat: Add publisher authorization discovery API

Implement two approaches for discovering which publishers have authorized an agent:

1. "Pull" approach: fetch_agent_authorizations() - Check publisher adagents.json files
   in parallel to see which ones authorize your agent, extracting property IDs and tags.

2. "Push" approach: ADCPClient.list_authorized_properties() - Ask the agent directly
   what publishers it represents (already existed, now documented).

Add AuthorizationContext class to encapsulate authorization info (property IDs, tags,
raw property data). Includes comprehensive tests covering success, failure, filtering,
and connection pooling scenarios.

Resolves #53

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: Move authorization discovery to README

Remove separate AUTHORIZATION_DISCOVERY.md file and integrate
content into README as a subsection under Publisher Authorization
Validation. Keeps documentation consolidated in a single location.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
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