Feature: Persistence robot alignment
  As a developer
  I want a Behave scenario that mirrors the Robot restart flow
  So that unit and integration persistence expectations stay aligned

  Scenario: Plan survives database restart with all fields intact
    Given a fresh file-backed persistence alignment database
    And a persistence alignment action "local/aligned-restart"
    And a persistence alignment plan "01KHW72B1S3EFM6NFEAPRS0001" in phase "execute" with state "processing"
    When the persistence alignment database is closed and reopened
    Then the persistence alignment plan "01KHW72B1S3EFM6NFEAPRS0001" should exist
    And the persistence alignment plan phase should be "execute"
    And the persistence alignment plan processing state should be "processing"
    And the persistence alignment plan description should be "Alignment test plan"
    And the persistence alignment plan should have 1 project link
