---
title: Replace waiver failure reason strings with enum codes
type: task
status: draft
description: >-
  Normalize waiver and poach failure reasons from free-form error message strings to a defined set
  of enum codes. Three scripts already have TODO comments for this:
  process-waivers-free-agency-active.mjs, process-poaching-waivers.mjs, and
  process-poaching-claims.mjs. The report route also hard-codes the string 'player is not a free
  agent' for filtering (two TODOs). Define codes in transaction-constants.mjs or a new
  waiver-reason-constants.mjs and update all processing scripts and the report route.
base_uri: user:task/league/waiver-failure-reason-codes.md
created_at: '2026-04-29T17:33:43.856Z'
entity_id: b6b06f57-1a87-4c8c-857a-1c05d33fa451
owner_identity_uri: █████████████████████████
priority: Low
public_read: true
relations:
  - relates [[user:repository/active/league]]
tags:
  - user:tag/league-xo-football.md
  - user:tag/software-task.md
updated_at: '2026-04-29T17:33:43.856Z'
visibility_analyzed_at: '2026-11-05T23:50:37.395Z'
---


