@mock_only
Feature: PR Compliance Checklist in Implementation Supervisor

  As an implementation supervisor
  I want to pass a mandatory PR compliance checklist to every worker prompt
  So that workers complete all required items before creating a PR and avoid systemic merge blockers

  Background:
    Given the implementation-supervisor.md agent definition exists

  Scenario: Supervisor worker prompt includes the PR compliance checklist
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes the PR compliance checklist section
    And the checklist is marked as MANDATORY

  Scenario: Checklist item 1 — CHANGELOG.md update required
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes a CHANGELOG.md checklist item
    And the item instructs workers to add an entry under the Unreleased section

  Scenario: Checklist item 2 — CONTRIBUTORS.md update required
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes a CONTRIBUTORS.md checklist item
    And the item instructs workers to add or update their contribution entry

  Scenario: Checklist item 3 — commit footer required
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes a commit footer checklist item
    And the item specifies the ISSUES CLOSED footer format

  Scenario: Checklist item 4 — CI must pass before PR creation
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes a CI passes checklist item
    And the item instructs workers to verify all quality gates are green

  Scenario: Checklist item 5 — BDD/Behave tests required
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes a BDD tests checklist item
    And the item instructs workers to add or update Behave feature files

  Scenario: Checklist item 6 — Epic reference required in PR description
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes an Epic reference checklist item
    And the item instructs workers to reference the parent Epic issue number

  Scenario: Checklist item 7 — Labels must be applied
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes a labels checklist item
    And the item instructs workers to apply labels via forgejo-label-manager

  Scenario: Checklist item 8 — Milestone must be assigned
    When I read the implementation supervisor agent definition
    Then the worker prompt body includes a milestone checklist item
    And the item instructs workers to assign the earliest open milestone

  Scenario: All 8 checklist items are present in the worker prompt
    When I read the implementation supervisor agent definition
    Then the worker prompt body contains all 8 mandatory checklist items
