Loading
Add readiness_score column to work_item_agent_plans
What does this MR do and why?
Adds a nullable integer readiness_score column (range 0-100) to the work_item_agent_plans table. This is the storage layer for the work plan readiness score, which signals how ready an AI-generated work plan is for an agent to act on.
nullmeans the score is not yet available (written by an external/agent process)- 0-100 integer range enforced by model validation
- No computation logic — storage only
This is MR 1 of 2 for #611320 (closed). MR 2 (stacked on this) will expose the score via GraphQL.
References
- Issue: #611320 (closed)
- UI MR: !248374 (merged)
- Feature flag rollout: #607899
- Parent epic: &23050
Screenshots or screen recordings
N/A — backend-only change.
How to set up and validate locally
- Run the migration:
bundle exec rails db:migrate - In rails console, verify the column and validation work as expected.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.