Skip to content

Use Agents API identity store for agent materialization#2598

Merged
chubes4 merged 2 commits into
mainfrom
fix/issue-2593-identity-lifecycle
Jun 8, 2026
Merged

Use Agents API identity store for agent materialization#2598
chubes4 merged 2 commits into
mainfrom
fix/issue-2593-identity-lifecycle

Conversation

@chubes4

@chubes4 chubes4 commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a Data Machine WP_Agent_Identity_Store adapter around the existing datamachine_agents table.
  • Register the adapter through the canonical Agents API wp_agent_identity_store resolver.
  • Route registered-agent reconciliation through wp_materialize_agent_identity() while preserving Data Machine owner access, directory, scaffold, and reconciliation hook side effects.
  • Update the bundled Agents API lock to the commit containing the identity-store lifecycle.

Fixes #2593.
Requires Automattic/agents-api#319, now merged.

Testing

  • php -l inc/Core/Identity/AgentIdentityStoreAdapter.php && php -l inc/Engine/Agents/AgentMaterializer.php && php -l inc/Core/Bootstrap/DependencyChecker.php && php -l inc/bootstrap.php
  • ./vendor/bin/phpcs inc/Core/Identity/AgentIdentityStoreAdapter.php inc/Core/Bootstrap/DependencyChecker.php inc/Engine/Agents/AgentMaterializer.php inc/bootstrap.php tests/agent-registry-materializer-smoke.php
  • php tests/agent-registry-materializer-smoke.php
  • php tests/agents-api-persisted-agent-registry-smoke.php

composer test did not run tests: the Homeboy lab runner failed before PHPUnit because @automattic/wp-codebox-core was unavailable to the lab recipe builder.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the Data Machine identity-store adapter and reconciliation cleanup; Chris remains responsible for review and validation.

@homeboy-ci

homeboy-ci Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine

Lint

lint — passed

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

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-lint-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-lint-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/27114415701

Test

test — passed

  • 795 passed
  • 1 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 218f9ed

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-test-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-test-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/27114415701

Audit

audit — passed

  • audit — 5 finding(s)
  • Total: 5 finding(s)

Deep dive: homeboy audit data-machine --changed-since 218f9ed

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-audit-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/27114415701
Tooling versions
  • Homeboy CLI: homeboy 0.222.15+f7dafc45
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 5637f95b
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 8d65c54 into main Jun 8, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/issue-2593-identity-lifecycle branch June 8, 2026 10:15
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.

Move agent materialization onto Agents API identity-store lifecycle

1 participant