Skip to content

test: make persisted agent registry smoke order-insensitive #3422

Description

@chubes4

Problem

On current origin/main (b1adfe2cf, after #3420), php tests/agents-api-persisted-agent-registry-smoke.php fails two ordering-only assertions.

Expected:
wordpress-com-wiki, woocommerce-wiki, roadie, coordinator

Actual:
wordpress-com-wiki, coordinator, woocommerce-wiki, roadie

All individual projection contracts pass, including canonical wp_get_agents() visibility, wp_get_agent() lookup, labels, descriptions, owner resolution, config, metadata, subagents, duplicate preservation, and no duplicate notices.

Scope

  • Confirm whether persisted repository ordering is contractual.
  • If ordering is not contractual, compare the projected slug set rather than insertion order.
  • If ordering is contractual, make the projector explicitly establish it and document the contract.

Verification

  • Run php tests/agents-api-persisted-agent-registry-smoke.php.
  • Run the owning managed WordPress suite.

AI assistance

OpenAI GPT-5.6 Sol via OpenCode identified and reproduced this existing baseline test defect while verifying #3421 under Chris Huber’s direction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions