Repository navigation
Closed
Labels
Description
Problem Statement
task.priority was expanded to a 5-level scale (highest/high/medium/low/lowest) in #2651. project.priority — a separate field on the project core schema, defined a few lines below it in packages/core/src/models/core_schemas.rs — still carries the old 3-level core_values (low/medium/high).
Two consequences worth a deliberate decision rather than drift:
- The same user-facing concept now has two different vocabularies depending on node type. A user who learns the task priority scale will find a narrower set on projects.
- Nothing guards
project.priorityagainst drift at all. Unliketask.priority, there is noProjectPriorityenum and no bidirectional consistency test.task.priorityis protected bytest_task_priority_variants_match_core_values_bidirectionally(added in Expand core task.priority to a 5-level scale (Highest/High/Medium/Low/Lowest) #2651, mirroring the ADR-076TaskStatuscheck); the project field has no equivalent, so a future change to either side would go unnoticed.
Decision Needed
Either:
- Align
project.priorityto the same 5-level scale, for one consistent priority vocabulary across core node types; or - Deliberately keep them different, and document why in
../nodespace-docs/so the divergence reads as intentional rather than as an oversight from Expand core task.priority to a 5-level scale (Highest/High/Medium/Low/Lowest) #2651.
Aligning is the more likely correct answer, but it is a product/design call, not a mechanical one — which is why #2651 explicitly scoped it out (that issue lists project-level priority handling as a non-goal).
Acceptance Criteria
- Decision made and recorded (either the scale is aligned, or the divergence is documented in
nodespace-docs) - If aligned:
project.priority'score_valuesinpackages/core/src/models/core_schemas.rsupdated, along with its field description (which enumerates the values in prose) - If aligned: the project schema fixture at
packages/desktop-app/src/tests/components/generic-schema-form-project.test.ts(~line 86-93) updated in lockstep — it is explicitly written to mirror the real schema field-for-field - If aligned:
../nodespace-docs/components/node-types.mdproject schema reference updated - Consider whether
project.prioritywarrants a drift guard equivalent to the task one
Reference Files
packages/core/src/models/core_schemas.rs—projectschema'spriorityfield (~line 283-320)packages/desktop-app/src/tests/components/generic-schema-form-project.test.ts— mirrored fixturepackages/core/src/models/core_schemas.rs—test_task_priority_variants_match_core_values_bidirectionally, the pattern any project-side guard would follow
Related Issues
- Expand core task.priority to a 5-level scale (Highest/High/Medium/Low/Lowest) #2651 (expanded
task.priority; explicitly listed project priority as a non-goal)
Activity
Address review: guard the wire-type priority copy against drift
Expand core task.priority to a 5-level scale (closes #2651) (#2687)
malibio commentedon Sep 28, 2026
Frontend baseline: 280 files / 5225 tests passed
Align project.priority to the shared 5-level scale and rank it in sor…