Feature: Built-in actors work with v3 YAML format
  As a developer
  I want built-in actors to include v3 YAML text with type field
  So that agents actor run works identically for built-in and custom actors

  Scenario: Built-in actor YAML includes type field
    Given a configured provider registry with openai/gpt-4
    When built-in actors are ensured
    Then the openai/gpt-4 actor should have yaml_text
    And the yaml_text should contain "type: llm"
    And the yaml_text should contain "description:"

  Scenario: Built-in actor YAML includes required v3 fields
    Given a configured provider registry with anthropic/claude-3-opus
    When built-in actors are ensured
    Then the anthropic/claude-3-opus actor yaml_text should contain "name:"
    And the yaml_text should contain "type: llm"
    And the yaml_text should contain "model:"
    And the yaml_text should contain "provider:"
    And the yaml_text should contain "source: provider-registry"

  Scenario: Built-in actor works with agents actor run command
    Given a configured provider registry with openai/gpt-4
    And the built-in actors have been ensured
    When I call agents actor run with mock "openai/gpt-4"
    Then the command should not fail with v3 format error
    And the config parser should recognize the actor as v3 format

  Scenario: Built-in actor YAML structure matches v3 schema
    Given a configured provider registry with openai/gpt-4
    When built-in actors are ensured
    Then the generated yaml_text should be valid v3 ActorConfigSchema
    And the yaml_text should parse without errors

  @tdd_issue @tdd_issue_10926
  Scenario: Built-in actor YAML uses bare model identifier without provider prefix
    Given a configured provider registry with anthropic/claude-sonnet-4-20250514
    When built-in actors are ensured
    Then the anthropic/claude-sonnet-4-20250514 actor should have yaml_text
    And the yaml_text should contain "model: claude-sonnet-4-20250514"
    And the yaml_text should not contain "model: anthropic/claude-sonnet-4-20250514"

  @tdd_issue @tdd_issue_10926
  Scenario: Built-in actor YAML has lowercase provider field
    Given a configured provider registry with Anthropic/claude-sonnet-4-20250514
    When built-in actors are ensured
    Then the yaml_text should contain "provider: anthropic"
    And the yaml_text should not contain "provider: Anthropic"

  @tdd_issue @tdd_issue_10926
  Scenario: Built-in actor YAML for model without slash has separate provider and model fields
    Given a configured provider registry with anthropic/claude-sonnet-4-20250514
    When built-in actors are ensured
    Then the generated yaml_text should be valid v3 ActorConfigSchema
    And the yaml_text should contain "provider: anthropic"
    And the yaml_text should contain "model: claude-sonnet-4-20250514"
