Skip to content

Add audience grants for agent access#2021

Merged
chubes4 merged 2 commits into
mainfrom
fix/audience-agent-grants
May 15, 2026
Merged

Add audience grants for agent access#2021
chubes4 merged 2 commits into
mainfrom
fix/audience-agent-grants

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 15, 2026

Summary

  • Adds Data Machine storage and CLI/ability surfaces for non-user agent access grants such as audience:public.
  • Adapts the Agents API access store to the principal-aware contract from Add audience principals for agent access Automattic/agents-api#173.
  • Allows public audience chats to run under the selected agent owner's safe runtime context after access is granted.

Testing

  • php tests/agents-api-access-store-adapter-smoke.php
  • homeboy lint data-machine --path /Users/chubes/Developer/data-machine@fix-audience-agent-grants --changed-since origin/main
  • php -l inc/Core/Auth/AgentAccessStoreAdapter.php
  • php -l inc/Core/Database/Agents/AgentAccess.php
  • php -l inc/Abilities/Chat/AgentsChatHandler.php
  • php -l inc/Abilities/AgentAbilities.php

Depends on

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Implemented and tested the Data Machine audience-grant path under Chris's direction.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 15, 2026

Homeboy Results — data-machine

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
Deep dive: homeboy lint data-machine --changed-since 959b18b

Test

test — passed

  • 900 passed
  • 3 skipped

ℹ️ Auto-fix lint issues: homeboy refactor data-machine --from lint --write
ℹ️ Collect coverage: homeboy test data-machine --coverage
ℹ️ Save test baseline: homeboy test data-machine --baseline
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy docs commands/test
Deep dive: homeboy test data-machine --changed-since 959b18b

Audit

audit — passed

  • requested_detectors — 127 finding(s)
  • test_coverage — 43 finding(s)
  • dead_code — 9 finding(s)
  • intra-method-duplication — 8 finding(s)
  • dead_guard — 2 finding(s)
  • repeated_literal_shape — 2 finding(s)
  • Auth — 1 finding(s)
  • Directives — 1 finding(s)
  • Retention — 1 finding(s)
  • structural — 1 finding(s)
  • Total: 195 finding(s)

Deep dive: homeboy audit data-machine --changed-since 959b18b

Tooling versions
  • Homeboy CLI: homeboy 0.181.6+42e65aea
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: a4a13b7
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 9522572 into main May 15, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/audience-agent-grants branch May 15, 2026 22:49
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.

1 participant