Skip to content

Decide whether project.priority should match task.priority's 5-level scale #2694

Closed

Description

@malibio

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:

  1. 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.
  2. Nothing guards project.priority against drift at all. Unlike task.priority, there is no ProjectPriority enum and no bidirectional consistency test. task.priority is protected by test_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-076 TaskStatus check); the project field has no equivalent, so a future change to either side would go unnoticed.

Decision Needed

Either:

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's core_values in packages/core/src/models/core_schemas.rs updated, 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.md project schema reference updated
  • Consider whether project.priority warrants a drift guard equivalent to the task one

Reference Files

  • packages/core/src/models/core_schemas.rs — project schema's priority field (~line 283-320)
  • packages/desktop-app/src/tests/components/generic-schema-form-project.test.ts — mirrored fixture
  • packages/core/src/models/core_schemas.rs — test_task_priority_variants_match_core_values_bidirectionally, the pattern any project-side guard would follow

Related Issues

Activity

  1. malibio commented on Sep 28, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 280 files / 5225 tests passed

  2. self-assigned this
    on Sep 28, 2026
  3. added a commit that references this issue on Sep 28, 2026
    60845c9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions