import { describe, expect, it } from 'vitest'
import { workQueueRecipe } from '../screenRecipe'

describe('T12 screen recipe adoption', () => {
  it('preserves queue recovery and security policies as immutable metadata', () => {
    expect(workQueueRecipe.id).toBe('T12')
    expect(workQueueRecipe.requiredPolicies).toContain('exception-first-projection')
    expect(workQueueRecipe.recoveryPolicies).toContain('retryable-vs-terminal-error')
    expect(workQueueRecipe.securityPolicies).toEqual(['screen-permission', 'exception-action-permission', 'server-enforcement'])
    expect(Object.isFrozen(workQueueRecipe)).toBe(true)
  })
})
