Skip to content

Expand core task.priority to a 5-level scale (Highest/High/Medium/Low/Lowest) #2651

Closed

Description

@malibio

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's core_values in packages/core/src/models/core_schemas.rs updated to the 5-level scale (highest/high/medium/low/lowest)
  • Old 3-level values (low/medium/high as the only options) fully removed, not kept as a superset — medium/high/low value 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 to nodespace-docs main
  • 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 — task schema's priority field, ~line 94-130
  • packages/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

Non-Goals

  • Any Jira-recipe-specific or Linear-recipe-specific priority handling — this is a core, unconditional task change 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

  1. malibio commented on Sep 17, 2026

    @malibio
    CollaboratorAuthor

    Baseline (worktree issue-2651-priority-5-level): Frontend: 247 test files passed, 5085 tests passed.

  2. self-assigned this
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions