Skip to content

Add identity store materialization lifecycle#319

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-318-identity-store-lifecycle
Jun 8, 2026
Merged

Add identity store materialization lifecycle#319
chubes4 merged 1 commit into
mainfrom
fix/issue-318-identity-store-lifecycle

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented Jun 8, 2026

Summary

  • Add a generic WP_Agent_Identity_Stores resolver backed by the wp_agent_identity_store filter or direct identity_store context.
  • Add helpers to materialize one registered WP_Agent or all registered agents into WP_Agent_Materialized_Identity records without choosing a concrete storage backend.
  • Add focused smoke coverage for direct store context, filter-provided store resolution, owner/instance scope derivation, idempotent materialization, metadata/config handoff, and no Data Machine coupling.

Fixes #318.

Testing

  • php tests/identity-store-materialization-smoke.php
  • php tests/identity-smoke.php
  • php tests/registry-smoke.php
  • php tests/registered-agent-materialization-adapter-smoke.php
  • composer phpstan
  • composer smoke

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the generic identity-store resolver/materialization helpers and smoke test; Chris remains responsible for review and validation.

@chubes4 chubes4 merged commit 995e945 into main Jun 8, 2026
2 checks passed
@chubes4 chubes4 deleted the fix/issue-318-identity-store-lifecycle branch June 8, 2026 03:16
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 identity-store resolver and materialization lifecycle

1 participant