Repository navigation
Closed
Description
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 TypeScriptCollectionNodeis hand-written.skill:SkillNode(packages/nodespace-types/src/skill.rs) is a reader only. It doesn't deriveSerialize, 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:statusandpriorityare plainStrings (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,SkillNodeandDatabaseSettingsNodeinnodespace-types, each embeddingNodeEnvelope, 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.statusandproject.prioritybecome extensible enums with a user-value variant.priorityuses the shared five-level scale.- OCC conflict tests for the typed
projectandqueryupdates. 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
- Follows
development/node-type-sequence.md; each type's sheet incomponents/node-types.mdis correct in the same PR -
CollectionNode,SkillNodeandDatabaseSettingsNodeserialize with the full envelope; their typed updates write, clear, conflict and reject a wrong type (tests per type) -
collection.description(Give collections a declared description that the CLI, agent and workspace context use #3421) andskill(after Seed built-ins from fixed-UUID tables with Markdown bodies, order agent guidance, and link skills to their schemas #3418'sapplies_to) are covered by the typed shapes -
project.status/priorityare extensible enums; an unknown non-user value is rejected (test) - The typed
projectandqueryupdates each have an OCC conflict test; the query viewer writes through a store wrapper - TypeScript for these types is generated, not hand-written
-
bun run test:changedpasses;bun run quality:fixclean
Technical Specifications
Reference Files
packages/nodespace-types/src/{skill,project,query}.rs,packages/nodespace-types/src/lib.rspackages/core/src/models/core_schemas.rs,packages/core/src/behaviors/mod.rspackages/core/src/ops/collection_ops.rs,packages/core/src/ops/skill_ops.rs- Daemon, proto, Tauri and dev-proxy update paths: follow the existing
persontyped update end to end as the pattern packages/desktop-app/src/lib/stores/shared-node-store.svelte.ts
Dependencies
- Add the core node type registry, shared envelope, closed schemas and extends-aware rules #3439 (registry, envelope, closed schemas)
- Generate the frontend's wire types from nodespace-types and gate them for drift #3440 (generated TypeScript)
Non-Goals
- task (Define the task types once and route the typed task update through the shared pipeline #3441), schema (Make SchemaNode one wire type that the store fills, with extends and relationships #3442), AI-chat (Split ai-chat into an abstract base with ai-chat-native and ai-chat-pty subtypes #3446), play (Share one RelationshipPath compiled to CTE SQL between queries and plays, and type play rules #3449), tool (Make tool an abstract base with a tool-native subtype and drop source #3450)
Activity
malibio commentedon Oct 1, 2026
Naming for the project status enum: call it
ProjectStatus, mirroringTaskStatus(core variantsPlanning,Active,Completed,CancelledplusUser(String)). Status vocabularies differ per type, so each type gets its own enum; onlyPriorityis shared. Thepriorityhalf of this item already landed with #3470. With #3440's generator, derivingTSon the enum is all the frontend needs:ProjectNode.statusbecomesstatus: ProjectStatuson the nextbun run gen:types.malibio commentedon Oct 1, 2026
Starting the project.status slice of this issue (ProjectStatus enum). Baseline on main at 29f5824 — Frontend: 301 test files, 5560 tests passed
Type project.status as a ProjectStatus enum with a user-value variant…
Type project.status as a ProjectStatus enum with a user-value variant (…
malibio commentedon Oct 1, 2026
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.
malibio commentedon Oct 2, 2026
Baseline — Frontend: 303 test files passed, 5559 tests passed
Type collection, skill and database-settings on the wire and give eac…
Route the new typed updates through the adapters, dev-proxy and store…