Skip to content

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

Merged
malibio merged 4 commits into
mainfrom
issue-3453-typed-flat-types
Oct 2, 2026
Merged

malibio merged 4 commits into
mainfrom
issue-3453-typed-flat-types

Conversation

@malibio

@malibio malibio commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #3453.

What this does

Gives the three remaining flat core types a typed wire shape and a typed update, and closes project and query's gaps (ADR-086 §4).

Kind and category: collection, skill and database-settings are concrete core types, category flat. No type, field, relationship or rule is added or removed: every field below is already declared by its schema.

Type Wire struct Fields promoted to the top level Typed update
collection CollectionNode description description tri-state
skill SkillNode (envelope + SkillFields) description, exclusion, tool_whitelist, max_iterations, node_types description and tool_whitelist set-only; the rest tri-state
database-settings DatabaseSettingsNode required_extensions required_extensions tri-state
  • Each typed update goes core service → proto → daemon → Tauri → dev-proxy → adapters → store, and lowers into the shared update pipeline. A stale version returns the typed current node in the conflict header.
  • The registry marks the three types as typed with an update, so a typed client's generic update_node now refuses their declared fields, as it does for task.
  • The old SkillNode was a reader with no envelope. The reader is now SkillFields (like QueryFields), and SkillNode is the wire shape. Call sites pass the skill's name separately.
  • project: status and priority were already extensible enums on main. This adds the OCC conflict test and a test that a value the schema does not declare is refused.
  • query: OCC conflict tests, and the query viewer now writes its view config through sharedNodeStore.updateQueryNode and reads the query node from the store.
  • TypeScript for the three types is generated. The hand-written CollectionNode and its unused helpers are deleted; CollectionInfo is the generated node plus its counts.

Two things worth a look

  • A create now carries the typed fields its node holds. With skill typed, its required description lives at the top level, and the store's create sent only properties, so "+ New" on a skill would have been rejected. The store now folds unstaged typed fields into the create under their storage names, and needsUnsavedPlaceholder decides by the schema alone instead of excluding typed types. Only skill changes behaviour: it is the one typed type with a required field that has no default.
  • node_types is on the typed skill shape. The skill schema still declares it, and the registry test pins the promoted fields to the schema. The applies_to relationship (Seed built-ins from fixed-UUID tables with Markdown bodies, order agent guidance, and link skills to their schemas #3418) has not landed; that change removes the field from the schema and the struct together. The docs sheet describes the four fields that stay.

Docs

components/node-types.md: wire names and typed-update lines for the three sheets (nodespace-docs f4b92cd).

Tests

  • nodespace-types: wire contract per type (full envelope, emptied properties, defaults, a malformed skill keeps its node), update structs (tri-state, unknown key).
  • core: typed_flat_updates_test — write, clear, conflict and wrong type for each of the three; pipeline validation for skill; project and query conflicts; project vocabulary.
  • daemon: write and typed conflict header for each of the three; conflict header for project and query.
  • Tauri and HTTP adapter contract tests for the three updates.
  • Frontend: store routing for every type with a typed update, create carrying typed fields, skill placeholder, query viewer writing through the store, collection viewer description.

bun run test:changed passes (frontend, scripts, browser, generated-TypeScript drift, Rust workspace). bun run quality:fix is clean.

🤖 Generated with Claude Code

@malibio

malibio commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review — PR #3488

Review Type: Initial Review (no prior reviews or comments on the PR; head 21365e1b)

Recommendation: REQUEST CHANGES — one blocker in the frontend create path for skills. The backend half (wire types, service, proto, daemon, Tauri, dev-proxy, generated TypeScript) follows the person / play pattern at every layer and I found nothing to change there.

What I ran: typed_flat_updates_test:: (10/10 pass). Everything else below is from reading the code; the blocker is traced end to end but not reproduced by a test, because this review is read-only.


Requirements Check (#3453)

# Criterion Result Notes
1 Follows node-type-sequence.md; each sheet in node-types.md correct in the same PR ⚠️ Mostly Registry, wire type, conversion, typed update, generated TS, typed write path, tests and docs (f4b92cd) are all present. The skill sheet says the typed update "carries these four fields", but the code carries five (node_types / nodeTypes). The PR body explains why (applies_to, #3418, has not landed). See finding 4.
2 The three nodes serialize with the full envelope; typed updates write, clear, conflict and reject a wrong type (tests per type) ✅ Wire-contract tests in convert.rs; write / clear / conflict / wrong type per type in typed_flat_updates_test.rs; typed conflict header per type in the daemon tests; Tauri and HTTP adapter contract tests.
3 collection.description and skill (after applies_to) covered by the typed shapes ⚠️ Partial collection.description ✅. skill is covered with node_types still on the shape, since #3418 is not merged. Acceptable as a stated deviation.
4 project.status / priority are extensible enums; an unknown non-user value is rejected (test) ✅ Already enums on main; a_project_update_refuses_a_value_the_schema_does_not_declare covers both fields and checks the version did not move.
5 Typed project and query updates each have an OCC conflict test; query viewer writes through a store wrapper ✅ Core and daemon conflict tests for both. persistViewConfig goes through sharedNodeStore.updateQueryNode. The rename still calls the adapter directly (finding 3).
6 TypeScript for these types is generated ✅ Seven generated files; hand-written CollectionNode and its unused helpers deleted; CollectionInfo is now CollectionNode & {counts}, which matches the Tauri CollectionInfo (typed node flattened plus counts).
7 test:changed passes; quality:fix clean ✅ (as reported) Not re-run, per instructions.

Node-type checklist: no undeclared keys, no literal node_type comparison added, no lifecycle_status read, no second wire-type definition, no hand-copied generated TS, no compatibility code, ids unchanged. node_types is a list of schema ids where a relationship belongs, but it predates this PR and #3418 removes it.


Code Review Findings

🔴 Critical

1. A new skill typed at normal speed is never saved: the create drops the required description

📁 packages/desktop-app/src/lib/services/shared-node-store.svelte.ts:1691-1705 (withTypedFields), with :3801 (updateTypedNode) and :1857 (placeholder branch)

if (field.readOnly || field.wire in staged || value === undefined || value === null) continue;

Trace for "+ New" on a skill:

  1. createInstancePlaceholder holds the node as an unsaved placeholder.
  2. The form writes on every keystroke (schema-field-leaf.svelte:122, oninput). The first character makes description non-empty, so applyUnsavedPlaceholderUpdate releases the hold and calls setNode, which queues the create in debounce mode (500 ms).
  3. The second character arrives before the debounce fires. The node is no longer a placeholder, so updateNode routes description to updateTypedNode, which stages it in pendingTypedFields and returns because the node is not persisted yet.
  4. The debounced create runs. withTypedFields sees description in staged and leaves it out. The skill placeholder has no other typed values, so the create goes out with properties: {}.
  5. The backend rejects it: Required field 'description' is missing from skill node (crud.rs:2989). persistedNodeIds is never set and the staged field is never sent. Every later edit is staged again and returned early, and any retried create excludes description again. The skill cannot be saved.

The exclusion is only safe for a field the schema defaults (the project.status case the new test covers). skill.description is the one typed field that is required with no default, which is the case this method was written for. Before this PR the skill form wrote properties.description, which the create read from the node at execution time, so this is a regression.

The existing test (schema-authoring-placeholder.test.ts:119) sends the whole description in one updateNode, so it never reaches step 3.

Recommendation: let the create carry the node's current value for every typed field, staged or not, and drop the non-null staged entries it carried (firing their onPersistSuccess). A staged null on a node that does not exist yet has nothing to clear. Add a test that writes description twice on a placeholder inside the debounce window and asserts one createNode whose properties hold the latest description. update-typed-node.test.ts:389 encodes the current exclusion and needs to change with it.

Principle: correctness of state transitions. A create must be self-sufficient against the schema's required fields, and must not depend on a follow-up write that only runs if the create succeeds.

🟡 Important

2. null on a set-only skill field is silently read as "absent"

📁 packages/nodespace-types/src/skill.rs:209-219

#[serde(default, skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
...
pub tool_whitelist: Option<Vec<String>>,

{"description": null} deserializes to None. The form sends exactly that when the user empties the field (schema-field-resolution.ts:61 turns '' into null for a typed type). Result: the update is empty, the daemon answers SkillNodeUpdate contains no changes, the user gets a write-failure notice that does not say what is wrong, and the store keeps the optimistic undefined description while the backend keeps the old one. In a mixed update the null is dropped without any error.

TaskNodeUpdate.status has the same shape, but an enum select cannot produce an empty value; a free-text field can, so this PR makes it reachable.

Recommendation: reject null for a set-only field at deserialization ("description cannot be cleared"), with a unit test beside update_distinguishes_absent_null_and_value. The docs sheet already says the two fields "can be set but not cleared"; the wire should enforce that rather than ignore the request.

Principle: fail loudly on an invalid input instead of reinterpreting it.

🟢 Suggestions

3. The query rename still writes around the store

📁 packages/desktop-app/src/lib/components/viewers/query-node-viewer.svelte:503-516

View-config writes now go through the store's per-node persistence queue; the rename calls backendAdapter.updateNode(queryNode.id, queryNode.version, …) directly. The two paths are not serialized against each other, so a rename issued while a view-config write is in flight (or the reverse) sends a stale version and conflicts. The window is one RPC, and the same race existed before, so this is not a regression. Routing the rename through sharedNodeStore.updateNode(nodeId, { content }, …) with onPersistError would give the viewer one write path.

Related, same file: queryNode is now $derived from the store, but activeView, kanbanGroupBy and targetType are still local copies set once at load. A version conflict on a view-config write rehydrates the store's viewConfig without calling onPersistError, so the viewer keeps showing the user's choice with no saveError. Deriving those from queryNode would complete the viewer data pattern in creating-node-types.md §9. Optional.

I checked the paths I was asked to: load (store first, then backend, epoch check added before the store write), eviction (the tab's node id is an open document root, so the query node stays reachable), the error path (covered by the new disk full test), and successive view changes (the second merges onto the optimistic value at the confirmed version, which the new test asserts).

4. skill sheet and code disagree on node_types

📁 nodespace-docs/components/node-types.md (skill), packages/nodespace-types/src/skill.rs

The sheet lists four fields and says the typed update carries "these four"; the struct, the update, TYPED_CORE_FIELDS and the generated TS carry nodeTypes as a fifth. The PR body is upfront about this and the registry test forces every declared field to be promoted, so the code is right for today's schema. Either note node_types on the sheet until #3418 lands, or accept the gap knowingly; I would not block on it.

5. Test gaps worth closing while here

  • 📁 packages/desktop-app/src/tests/services/update-typed-node.test.ts:205-228: the parametrized routing test asserts that exactly one typed spy was called, not that it was the one for nodeType. A swapped entry in TYPED_UPDATERS would pass. Assert on the matching spy.
  • 📁 packages/core/tests/it/core_type_registry_test.rs:592-603: the typed-client refusal is asserted for collection only. The guard is generic over typed_update_fields, so this is low risk; a skill and database-settings case would pin the registry flag for each.

Nitpicks

  • Nit: 📁 packages/desktop-app/src/lib/services/node-normalize.ts:162: the dev-proxy mirror promotes exclusion as stored, while SkillFields::from_properties trims it and drops a blank one. The two transports return different values for " x " or " ". Dev-only, but the file's header asks to keep it in step with convert.rs.
  • Nit: 📁 packages/desktop-app/src/lib/types/generated/skill-fields.ts: the Rust doc comment about hoisted and flat storage shapes is generated into the frontend type, where it describes nothing the frontend can see. A shorter doc on SkillFields would read better on both sides.

What is solid

  • The three typed updates match person / play at each layer: is_empty refusal, update_typed_fields lowering, JSON-encoded proto request, typed_update_error_to_status for the typed conflict header, echo_suppressed_client in Tauri, the dev-proxy route, both adapters, and TYPED_UPDATERS.
  • typed_update_json removes the duplicated serialize-error block from the query and play commands.
  • The SkillNode → SkillFields rename is complete across core, agent and CLI. tools.rs keeps the same filter semantics (decode succeeds, then use content).
  • No frontend caller still writes collection.description, skill fields or required_extensions through the generic update, so the new typed-client refusal breaks nothing: the skill form goes through buildFieldWrite to the typed route, collections are created and renamed by their own RPCs, and skill_updater calls the core service directly.
  • needsUnsavedPlaceholder now decides by schema alone. I checked every core schema: skill.description is the only required field without a default on a type with a typed update, so only skill is affected, as the PR says.
  • Security: no new input reaches SQL or a shell; every update struct is deny_unknown_fields; required_extensions was already writable through the generic update, so the typed command adds no capability. No Pro markers, no lint suppression, no any, no raw console.* in the diff.
  • Performance: one extra get_node per typed update for the type check, same as the existing typed updates.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated pragmatic-code-review: REQUEST CHANGES (posted as a comment — GitHub blocks requesting changes on your own pull request). Full findings in the review comment above.

@malibio

malibio commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

Review addressed (56b167e6)

Addressed

  1. 🔴 Create drops a staged description. Confirmed as traced. A create now carries every typed field its node holds, staged or not; the staged typed write still follows the create and settles its callers' callbacks. New test types a skill's description one keystroke at a time and asserts one createNode carrying the latest value; the project create test now expects the staged status in the create.
  2. 🟡 null on a set-only skill field. SkillNodeUpdate.description and tool_whitelist refuse null ("the field is required and cannot be cleared") instead of reading it as absent. Unit test added.
  3. 🟢 Query rename around the store. The saved-query rename goes through sharedNodeStore.updateNode, so it is ordered with a view-config write. New test holds a view change in flight, renames, and asserts the rename is sent afterwards at the bumped version.
  4. 🟢 Test gaps. The routing test asserts the update called is the type's own. The typed-client refusal is asserted for skill and database-settings as well as collection.
  • Nit: the storage-shape notes on SkillFields are now a code comment, so the generated TypeScript carries only the one-paragraph description.

Skipped

  • 3b, deriving activeView / kanbanGroupBy from the store: a wider rewrite of the viewer's view state than this change needs. Worth doing if a silent conflict on a view-config write shows up in practice.
  • 4, node_types on the skill sheet: the docs describe the intended shape, and the skill-to-schema relationship (Seed built-ins from fixed-UUID tables with Markdown bodies, order agent guidance, and link skills to their schemas #3418) removes the field from the schema and the struct together. The PR body states the gap.
  • Nit, exclusion trimming in the dev-proxy mirror: dev-only, and only differs for a value stored with stray whitespace.

bun run test:changed passes on the new head; bun run quality:fix is clean.

Re-review: needed. The critical fix changes store create logic.

@malibio

malibio commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review — PR #3488

Review Type: Re-Review (head 56b167e6, previous review at 21365e1b)

Recommendation: APPROVE — the blocker is fixed and nothing new blocks. Two 🟡 findings below are small and worth folding in before merge: one is a failure-path regression the rename change introduces, the other is a narrower path to the same "skill never saved" state as the original blocker.

Previous Review Summary: 5 findings and 2 nits. 3 findings fully addressed (1, 2, 5), 1 half addressed with the other half skipped (3), 1 skipped (4); 1 nit addressed, 1 skipped. All three skips are reasonable. 2 new 🟡 findings, 1 🟢, 2 nits.

What I ran: the three changed frontend test files (50/50 pass) and nodespace-types skill:: (15/15 pass). The new findings are traced through the code, not reproduced by a test, because this review is read-only.


Per-finding status

# Previous finding Status What I checked
1 🔴 Create drops a staged required description ✅ Addressed for the traced case withTypedFields no longer skips staged fields, and it reads this.nodes when the create executes, so the create carries the latest value. A field staged while the create RPC is in flight goes out in the follow-up typed write. The new keystroke test fails on the old code (the create would be create:{}). A residual path remains: new finding B.
2 🟡 null on a set-only skill field read as absent ✅ Addressed as recommended deserialize_set_only with #[serde(default)]: absent is None, a value sets, null is an error. It is enforced at both decoders: the Tauri command argument (update: SkillNodeUpdate) and the daemon's serde_json::from_str (Invalid skill update: …). The dev-proxy forwards JSON to the daemon, so it gets the same refusal. The user-facing half of the original finding is unchanged: new finding C.
3a 🟢 Query rename writes around the store ✅ Addressed, with a new failure-path problem Ordering is right in both directions: a rename behind an in-flight view change queues and sends at the bumped version (the new test asserts [id, 2] and fails on the old code); a view change while the rename waits on its debounce promotes the rename first. See new finding A for the failure path.
3b 🟢 Derive activeView / kanbanGroupBy from the store ⏭️ Skipped, reasonable A conflict on a view-config write still raises the store's conflict toast, so it is not silent; only saveError stays empty. Not worth a viewer rewrite here.
4 🟢 node_types on the skill sheet ⏭️ Skipped, reasonable The registry test forces every declared field to be promoted, and the PR body states the gap.
5 🟢 Test gaps ✅ Addressed The routing test now asserts called() equals [nodeType], so a swapped TYPED_UPDATERS entry fails. The refusal is asserted for skill (by wire name maxIterations) and database-settings (by storage name); the guard matches either name, so both are real assertions.
Nit exclusion trimming in the dev-proxy mirror ⏭️ Skipped, reasonable Dev-only.
Nit Storage-shape doc generated into TypeScript ✅ Addressed Moved to a // comment; the generated file carries one paragraph.

New Findings

🟡 A. A failed rename leaves the unsaved name in the header, and the same name cannot be retried

📁 packages/desktop-app/src/lib/components/viewers/query-node-viewer.svelte:503-520

sharedNodeStore.updateNode(queryNode.id, { content: name }, …, {
  persist: 'immediate',
  onPersistError: (e) => {
    log.error('QueryNodeViewer: failed to rename query', { error: e.message });
    saveError = `Failed to rename query: ${e.message}`;
  }
});

updateNode applies content to the store optimistically. On a failure that is not a version conflict, rollbackUpdate only rewinds bookkeeping; the store's own comment says it "cannot restore the field values" and that onPersistError exists so the caller can put its field back (shared-node-store.svelte.ts:2570-2612, pattern in kanban-view.svelte moveCard). This handler sets the message and nothing else. Result, when the daemon rejects or is unreachable:

  • The header (displayTitle, derived from the store) and the tab title keep the new name, next to "Failed to rename query". The backend still has the old name.
  • Typing the same name again is refused by if (!name || name === displayTitle) return;, so the user cannot retry without first typing a different name.
  • The store also raises its generic write-failure toast, so the failure is reported twice.

Before this commit the store was written only after the RPC succeeded, so a failure left the old name on screen and a retry worked. Success and version-conflict paths are fine: on a conflict the store hydrates from the server's node, the header shows the server's name and the conflict toast appears.

Recommendation: capture queryNode.content before the write and, in onPersistError, write it back with skipPersistence: true if the store still holds name (the same guard moveCard uses). Add a test beside reports a failed saved-query view change that rejects updateNode and asserts the header shows the old name.

Principle: an optimistic write needs a compensating action on failure; the UI must not present unsaved state as saved.

🟡 B. A new skill whose description is empty when the create fires is still never saved

📁 packages/desktop-app/src/lib/services/shared-node-store.svelte.ts:1695-1708 (withTypedFields), :3804-3805 (updateTypedNode)

// Not created yet: the create path sends the staged fields once it lands.
if (!this.persistedNodeIds.has(nodeId)) return;

The create is queued once, 500 ms after the first character, and a later typed write on an unpersisted node only stages. Trace: type S (placeholder released, create queued), backspace within the 500 ms (buildFieldWrite turns '' into null, staged, local description is undefined), the create fires with no description and the backend rejects it. From then on every description keystroke is staged and returns at the line above; nothing queues another create. The user sees one write-failure toast and a form that looks editable but saves nothing. Editing the skill's name should retry the create through the generic path's create branch (:2344-2365); I did not verify that end to end.

The same line means any failed create of a typed node (a daemon restart, say) is not retried by typed-field edits, and the staged writes' onPersistError callbacks are never called. That part predates this PR; skill makes it matter, because its form is almost entirely typed fields.

This is much narrower than the original blocker (it needs the field to be empty at the moment the debounce fires), so I am not blocking on it. Recommendation: in the not-persisted branch of updateTypedNode, when no write is pending or executing for the node, queue the create again (setNode(updatedNode, source) is the store's create path). A test: S, then null, wait for the rejected create, then Sum, and assert a second createNode carrying Sum.

Principle: a write path must not have a state from which later writes are accepted locally and never sent.

🟢 C. Emptying a saved skill's description still shows a connection error

📁 packages/desktop-app/src/lib/components/schema/schema-field-resolution.ts:54-67 (buildFieldWrite), packages/nodespace-types/src/helpers.rs:36-49

The wire now refuses null, but the form still sends it: the text input writes on every keystroke and '' becomes null for any typed field. Select-all, delete, retype on a saved skill's description therefore sends {description: null}, which is refused, and the user gets "Your change couldn't be saved. Please check your connection." while the store shows an empty description and the backend keeps the old one. Retyping fixes it, so nothing is lost. The behaviour is the same as before this commit (the error was "contains no changes" then); the fix made the wire honest but did not change what the user sees.

Recommendation: do not send a clear for a required typed field. kanban-view.svelte already has this guard (if (target === null && activeField?.required) return;); the form can keep the empty value local and show its "still needed" marker until a value is typed. Fine to leave for the skill form's next change.

Principle: validate at the edge that knows the rule, so the user gets a specific message instead of a transport error.

Nitpicks

  • Nit: 📁 query-node-viewer.svelte:512: persist: 'immediate' does not make the rename immediate. updateNode picks the coordinator mode from the kind of change, and a content-only change is 'debounce' (shared-node-store.svelte.ts:2618-2623); the option is only read as "do persist". The rename goes out 500 ms after blur unless another write promotes it. Drop the option or the reader will assume otherwise.
  • Nit: 📁 helpers.rs:48: the error does not name the field; the daemon's message reads Invalid skill update: the field is required and cannot be cleared at line 1 column N. The test's doc comment says "naming why". Acceptable, since no user sees it.

Checked and found fine

  • withTypedFields for the other cases: a staged clear on a field with a schema default is left out of the create (the backend applies the default) and the staged null then clears it, as before. A field carried in the create is sent again by the staged write that follows; that is one redundant RPC per create with staged fields, and it is what settles the callers' callbacks. The project test pins both halves (status in the create and in the typed write).
  • All three create call sites in the store go through persistCreate, so the update-path create and the not-found fallback carry typed fields too.
  • deserialize_set_only leaves the generated TypeScript shape unchanged (description?: string); only the doc comment differs, and the drift check passed.
  • No literal node_type comparison, lifecycle_status read, compatibility code, lint suppression or Pro marker in the new commit.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

@malibio

malibio commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

Re-review addressed

Addressed

  • 🟡 A, failed rename keeps the unsaved name. onPersistError now puts the saved name back in the store (local only), unless the header has moved on to another name. New test rejects the rename and asserts the header shows the old name and that the same name can be submitted again.
  • 🟡 B, a skill emptied before its create fires is never saved. A placeholder's create now starts as soon as the placeholder is complete, instead of after the debounce, so there is no window in which the required field can be emptied before the create is sent. New test: S, then a clear, then Sum, asserting one create carrying S and a typed update carrying Sum. I did not take the suggested route of re-queuing a create from updateTypedNode for any unpersisted node: an editor line that is deliberately unpersisted until it has content would be created empty by a typed edit.
  • Nit: the rename no longer passes persist: 'immediate'.

Skipped

  • 🟢 C, emptying a saved skill's description shows a generic save error. The refusal is correct and retyping saves. Keeping the emptied value local with a "still needed" marker is a change to how the schema form treats required fields in general.
  • Nit, naming the field in the deserialize_set_only error: no user sees it; serde's message gives the position.

Not fixed here, as the re-review notes it predates this PR: a typed node whose create fails for an unrelated reason (the daemon is down) is not retried by typed-field edits alone.

Frontend unit suite passes (304 files, 5572 tests); frontend lint and type-check are clean. This commit touches no Rust; test:changed passed on the previous head.

Re-review: not needed. Both changes are small, each follows a pattern the re-review pointed to, and each has a test written against the failing case (not run against the pre-fix code).

malibio and others added 4 commits October 2, 2026 13:53
…h a typed update (#3453)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…, and write the query viewer through the store (#3453)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… a required skill field, rename a query through the store

- A create now carries every typed field its node holds, staged or not. A
  skill typed one keystroke at a time staged its description after the first
  character, the debounced create left it out, and the backend rejected the
  node for good.
- SkillNodeUpdate refuses null for description and tool_whitelist instead of
  reading it as absent.
- The saved-query rename goes through the store, so it is ordered with a
  view-config write instead of racing it at a stale version.
- The typed-update routing test asserts the update called is the type's own;
  the typed-client refusal is asserted for skill and database-settings too.

Skipped: deriving the query viewer's active view from the store (a larger
viewer refactor than this change needs), listing node_types on the skill
sheet (the skill-to-schema relationship removes the field), and trimming
exclusion in the dev-proxy mirror (dev-only, whitespace-only values).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…and start a completed placeholder's create at once

- A failed rename left the unsaved name in the header and could not be
  retried under the same name. The saved name is put back, unless the header
  has moved on.
- A placeholder completed by its first character queued a debounced create;
  emptying the field in that window sent a node the backend rejects, and
  nothing queued another create. The create now starts as soon as the
  placeholder is complete.
- The rename no longer passes a persist option that the store does not read
  as a mode.

Skipped: keeping an emptied required field local in the schema form instead
of sending a clear the backend refuses. The refusal is correct and retyping
saves; it belongs with the form's own handling of required fields.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@malibio
malibio force-pushed the issue-3453-typed-flat-types branch from 4917d59 to 27c07b1 Compare October 2, 2026 11:53
@malibio
malibio merged commit 4fec7f7 into main Oct 2, 2026
@malibio
malibio deleted the issue-3453-typed-flat-types branch October 2, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant