Feature: Built-in fs-mount Resource Type Bootstrap
  As a CleverAgents user
  I want the built-in fs-mount resource type to be available after initialization
  So that I can run "agents resource add fs-mount" without "Resource type not found"

  # ── Bug reproduction: fs-mount must be in BUILTIN_TYPES ───────────

  @tdd_issue @tdd_issue_2911 @tdd_issue_4178
  Scenario: fs-mount type exists after bootstrap
    Given a fresh in-memory resource registry with bootstrap
    When I query the fs bootstrap resource type registry for "fs-mount"
    Then the bootstrap fs resource type "fs-mount" should exist
    And the bootstrap fs resource type kind should be "physical"
    And the bootstrap fs resource type sandbox_strategy should be "copy_on_write"

  @tdd_issue @tdd_issue_2911 @tdd_issue_4178
  Scenario: fs-mount is user-addable after bootstrap
    Given a fresh in-memory resource registry with bootstrap
    When I query the fs bootstrap resource type registry for "fs-mount"
    Then the bootstrap fs resource type "fs-mount" should exist
    And the bootstrap fs resource type user_addable should be true

  @tdd_issue @tdd_issue_2911 @tdd_issue_4178
  Scenario: fs-mount has fs-directory as child type after bootstrap
    Given a fresh in-memory resource registry with bootstrap
    When I query the fs bootstrap resource type registry for "fs-mount"
    Then the bootstrap fs resource type "fs-mount" should exist
    And the bootstrap fs resource type child_types should contain "fs-directory"

  @tdd_issue @tdd_issue_2911 @tdd_issue_4178
  Scenario: fs-mount has no parent types after bootstrap
    Given a fresh in-memory resource registry with bootstrap
    When I query the fs bootstrap resource type registry for "fs-mount"
    Then the bootstrap fs resource type "fs-mount" should exist
    And the bootstrap fs resource type parent_types should be empty

  @tdd_issue @tdd_issue_2911 @tdd_issue_4178
  Scenario: resource add fs-mount succeeds after bootstrap
    Given a fresh in-memory resource registry with bootstrap
    When I run resource add for type "fs-mount" named "local/test-mount" with path "/tmp"
    Then the resource add command should succeed
    And the resource add output should contain "Added resource"
    And the resource add output should not contain "Resource type not found"

  @tdd_issue @tdd_issue_2911 @tdd_issue_4178
  Scenario: fs-directory can reference fs-mount as parent type after bootstrap
    Given a fresh in-memory resource registry with bootstrap
    When I query the fs bootstrap resource type registry for "fs-directory"
    Then the bootstrap fs resource type "fs-directory" should exist
    And the bootstrap fs resource type parent_types should contain "fs-mount"
