@tdd_issue @tdd_issue_4281
Feature: Regression guards — execution-env precedence (bug #4281)
  # Scenarios previously blocked by the parent feature-level
  # @tdd_expected_fail tag in tdd_exec_env_resolution_precedence.feature (bug #1080).
  # The specific assertions below pass on the current codebase while
  # bug #4281 remains open for other aspects of the issue.

  @tdd_issue @tdd_issue_4281
  Scenario: Regression guard - Plan-level override still beats project-level override (precedence level 1 vs 2)
    Given a precedence-aware execution environment resolver
    When I resolve precedence with plan env "host" at priority "override" and project env "container" at priority "override"
    Then the precedence-resolved environment should be "host"

  @tdd_issue @tdd_issue_4281
  Scenario: Regression guard - Project-level override beats host default (precedence level 2 vs 6)
    Given a precedence-aware execution environment resolver
    When I resolve precedence with no plan env and project env "container" at priority "override"
    Then the precedence-resolved environment should be "container"
