Skip to content

Expose persisted agents to Agents API#2000

Merged
chubes4 merged 2 commits into
mainfrom
fix/agents-api-persisted-agent-registry
May 14, 2026
Merged

Expose persisted agents to Agents API#2000
chubes4 merged 2 commits into
mainfrom
fix/agents-api-persisted-agent-registry

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 14, 2026

Summary

  • Registers durable Data Machine agent rows as runtime WP_Agent definitions so bundle-installed brain agents are discoverable through Agents API.
  • Maps Data Machine numeric access grants to Agents API agent slugs at the access-store boundary.
  • Adds smoke coverage for persisted agent projection and access-store slug/ID translation.

Testing

  • php tests/agents-api-persisted-agent-registry-smoke.php
  • php tests/agents-api-access-store-adapter-smoke.php
  • php tests/agents-api-registration-smoke.php
  • homeboy test --path /Users/chubes/Developer/data-machine@fix-agents-api-persisted-agent-registry --extension wordpress
  • ./vendor/bin/phpcs inc/Core/Auth/AgentAccessStoreAdapter.php tests/agents-api-access-store-adapter-smoke.php
  • git diff --check

Notes

  • homeboy lint --path /Users/chubes/Developer/data-machine@fix-agents-api-persisted-agent-registry --extension wordpress still reports existing unrelated JavaScript lint findings outside these changes.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the implementation, tests, and verification flow; Chris remains responsible for review and merge.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 14, 2026

Homeboy Results — data-machine

Lint

lint — passed

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

Test

test — passed

  • 18 passed

ℹ️ 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 76caa34

Audit

audit — passed

  • requested_detectors — 3 finding(s)
  • test_coverage — 3 finding(s)
  • Auth — 1 finding(s)
  • Total: 7 finding(s)

Deep dive: homeboy audit data-machine --changed-since 76caa34

Tooling versions
  • Homeboy CLI: homeboy 0.179.6+52c6ba3c
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 0dd8782
  • Action: unknown@unknown

@chubes4 chubes4 merged commit e4ff5bb into main May 14, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/agents-api-persisted-agent-registry branch May 14, 2026 02:01
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