Repository navigation
Description
Overview
task.priority currently ships with 3 core values (low/medium/high) — packages/core/src/models/core_schemas.rs (priority field, ~line 94-130). This is narrower than the vocabulary used by every mainstream work-tracking tool this codebase is being designed against this session (Jira's default priority scheme is Highest/High/Medium/Low/Lowest, 5 levels; confirmed via direct product documentation). A Jira-style methodology recipe (in design, see Related Issues) would otherwise need to widen this field itself — but add_field_values mutates a schema's own field vocabulary in place with no per-caller/per-recipe scoping (confirmed via direct inspection of packages/core/src/schema/mod.rs, add_field_values ~line 1408-1472: it does a direct, permanent write to the one stored task schema node's user_values, visible thereafter to every task node and every task-extending schema, database-wide). A recipe-scoped extension was never actually going to behave as "Jira-only" — it would silently widen priority for all existing, unrelated task nodes the moment such a recipe was installed. The 5-level scale is also not Jira-specific jargon (unlike "Sprint" or "Epic") — it's a generic, widely-understood urgency scale appropriate as a core default in its own right.
Problem Statement
task.priority's current 3-level vocabulary (low/medium/high) under-serves any methodology recipe wanting Jira-standard priority granularity, and there is no mechanism to scope a richer vocabulary to just one recipe's installed types without affecting every other task node in the database.
Proposed Solution
Replace the 3-level core_values on task.priority with the 5-level Jira-standard scale directly in core_schemas.rs. Per this repo's pre-release/no-backward-compatibility policy, this is a straight value replacement, not an additive change — old values are dropped, not deprecated or kept alongside the new ones, and no migration/backfill is written; existing databases are reset as usual.
core_values: Some(vec![
EnumValue { value: "highest".to_string(), label: "Highest".to_string() },
EnumValue { value: "high".to_string(), label: "High".to_string() },
EnumValue { value: "medium".to_string(), label: "Medium".to_string() },
EnumValue { value: "low".to_string(), label: "Low".to_string() },
EnumValue { value: "lowest".to_string(), label: "Lowest".to_string() },
]),Architecture Impact
../nodespace-docs/components/node-types.md:196 documents task.priority's current value set directly in its schema reference table (`priority` | enum | `"medium"` | `low`, `medium`, `high` + user-defined). This line goes stale the moment this issue lands and must be updated to the 5-level scale as a companion nodespace-docs change (commit straight to main, no branch/PR, per that repo's own workflow). No ADR documents task.priority's specific vocabulary as a decision (searched decisions/ for priority — no relevant hits beyond incidental/unrelated usage), so this is a reference-doc update only, not an ADR reversal.
Acceptance Criteria
-
task.priority'score_valuesinpackages/core/src/models/core_schemas.rsupdated to the 5-level scale (highest/high/medium/low/lowest) - Old 3-level values (
low/medium/highas the only options) fully removed, not kept as a superset —medium/high/lowvalue strings are reused directly for continuity of meaning, not renamed -
../nodespace-docs/components/node-types.md:196's schema reference table updated to list the 5-level scale, committed directly tonodespace-docsmain - Any existing test fixtures/assertions hardcoding the old 3-value set updated to match
- Any frontend priority picker/badge component enumerating these values (if one exists and hardcodes the 3-level set rather than reading from schema) updated to match
- Tests pass (
bun run test:all) - Code passes
bun run quality:fix
Technical Specifications
Reference Files
packages/core/src/models/core_schemas.rs—taskschema'spriorityfield, ~line 94-130packages/core/src/schema/mod.rs—add_field_values, ~line 1408-1472, confirms no per-caller scoping exists (the reason this must be a core change, not a recipe-scoped extension)../nodespace-docs/components/node-types.md— line 196, the stale schema-reference row to update
Dependencies
None — independent of extends/#2598 and of any recipe work.
Related Issues
- Add core blocks/blocked_by, relates_to/duplicates, and creator relationships on task #2637 (core
blocks/relates_to/creator relationships ontask) — same category of coretaskenrichment filed this session, kept separate since this issue changes an existing field's values rather than adding new relationships
Non-Goals
- Any Jira-recipe-specific or Linear-recipe-specific priority handling — this is a core, unconditional
taskchange benefiting every recipe and every plain task equally - A configurable/pluggable priority scale — ship the 5-level scale as the new fixed core default
Activity
malibio commentedon Sep 17, 2026
Baseline (worktree issue-2651-priority-5-level): Frontend: 247 test files passed, 5085 tests passed.
Sort task priority by urgency rank instead of alphabetically (#2731)