Skip to content

Give collection, skill and database-settings typed wire types and updates, and close project and query's gaps #3453

Closed

Description

@malibio

Overview

ADR-086 makes every core type fully typed: a struct in nodespace-types embedding NodeEnvelope, generated TypeScript, a typed update and one typed write path that lowers into the shared update pipeline. task, schema, the AI-chat family, play and tool each have their own issue. This issue covers the remaining flat types (collection, skill, database-settings) and brings project and query fully in line with the flat/structured recipe.

Problem Statement

  • collection: no wire struct, no typed update, no typed write path. Only membership RPCs exist. The TypeScript CollectionNode is hand-written.
  • skill: SkillNode (packages/nodespace-types/src/skill.rs) is a reader only. It doesn't derive Serialize, has no envelope, and has no typed update or write path.
  • database-settings: no wire struct or typed update for its one field, required_extensions.
  • project: status and priority are plain Strings (packages/nodespace-types/src/project.rs), so vocabulary checks live only in the service. ADR-086 §4 says an extensible enum is an enum with a user-value variant. There is no OCC conflict test on the typed path.
  • query: no OCC conflict test on the typed path. The query viewer calls the adapter directly instead of going through a store wrapper.

Proposed Solution

For each type, follow the flat recipe in components/creating-node-types.md and development/node-type-sequence.md:

  • CollectionNode, SkillNode and DatabaseSettingsNode in nodespace-types, each embedding NodeEnvelope, with typed *NodeUpdates (tri-state clearable fields). Each typed update goes core service → proto → daemon → Tauri → dev-proxy → adapters → store and lowers into the shared update pipeline.
  • project.status and project.priority become extensible enums with a user-value variant. priority uses the shared five-level scale.
  • OCC conflict tests for the typed project and query updates. A store wrapper for query updates, used by the viewer.
  • TypeScript comes from the generator.

Architecture Impact

Implements ADR-086 §4 (decisions/086-core-node-types-defined-once-typed-by-category.md) for these types. No ADR change. components/node-types.md already describes the shapes.

Acceptance Criteria

Technical Specifications

Reference Files

  • packages/nodespace-types/src/{skill,project,query}.rs, packages/nodespace-types/src/lib.rs
  • packages/core/src/models/core_schemas.rs, packages/core/src/behaviors/mod.rs
  • packages/core/src/ops/collection_ops.rs, packages/core/src/ops/skill_ops.rs
  • Daemon, proto, Tauri and dev-proxy update paths: follow the existing person typed update end to end as the pattern
  • packages/desktop-app/src/lib/stores/shared-node-store.svelte.ts

Dependencies

Non-Goals

Activity

  1. malibio commented on Oct 1, 2026

    @malibio
    CollaboratorAuthor

    Naming for the project status enum: call it ProjectStatus, mirroring TaskStatus (core variants Planning, Active, Completed, Cancelled plus User(String)). Status vocabularies differ per type, so each type gets its own enum; only Priority is shared. The priority half of this item already landed with #3470. With #3440's generator, deriving TS on the enum is all the frontend needs: ProjectNode.status becomes status: ProjectStatus on the next bun run gen:types.

  2. malibio commented on Oct 1, 2026

    @malibio
    CollaboratorAuthor

    Starting the project.status slice of this issue (ProjectStatus enum). Baseline on main at 29f5824 — Frontend: 301 test files, 5560 tests passed

  3. self-assigned this
    on Oct 1, 2026
  4. malibio commented on Oct 1, 2026

    @malibio
    CollaboratorAuthor

    The project.status item landed in #3476 (ProjectStatus enum, schema-pin test, user-value round trip). The rest of this issue is still open; unassigning and returning it to Todo.

  5. removed their assignment
    on Oct 1, 2026
  6. malibio commented on Oct 2, 2026

    @malibio
    CollaboratorAuthor

    Baseline — Frontend: 303 test files passed, 5559 tests passed

  7. self-assigned this
    on Oct 2, 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