Repository navigation
Description
Summary
components/schema-management.md's SchemaField interface (lines 41-51) is stale on five counts against packages/nodespace-types/src/schema.rs:147-215. Because SchemaField carries #[serde(rename_all = "camelCase", deny_unknown_fields)], every one of these is a hard InvalidArgument rejection rather than a silently-ignored key — an agent or developer following the canonical component spec cannot create a schema at all.
This is the same bug class as #2788 and #2801 (documented key vs. wire key), but in nodespace-docs rather than generated skill text, so neither those fixes nor #2629's proposed generated-text check reaches it.
The five mismatches
schema-management.md:41-51 says |
Actual wire key / value | Ref |
|---|---|---|
field_type |
type — #[serde(rename = "type")] |
schema.rs:163-164 |
enum_values?: EnumValue[] |
coreValues + userValues (two separate fields, ADR-076) |
schema.rs:167-170 |
"select" | "multi_select" | "string" |
enum, text — the documented values do not exist anywhere in the codebase |
— |
unique_case_insensitive |
uniqueCaseInsensitive |
schema.rs:199-201 |
description = "Human-readable label (used as column header)" |
friendlyName is the display label; description is semantic content consumed by the model for schema retrieval, explicitly not a UI label |
schema.rs:152-161, :182-188 |
The type-vocabulary row is the worst of the five: select, multi_select and string are not renames of anything — they are values with no referent in the code. The table at schema-management.md:140-147 repeats them, including two rows keyed on the non-existent enum_values.
The friendlyName row is a semantic inversion, not just a rename: following the doc puts the display label in the field the model reads for schema comprehension, and leaves the actual label to be auto-derived from name.
Why it drifted
coreValues/userValues arrived with ADR-076 (2026-09-13) and friendlyName with the friendly-name work; the component spec was not updated alongside either. git log -- components/schema-management.md shows the file's recent commits are all ADR-077/078 additions that appended new sections without revisiting the existing interface block.
Note packages/skill/references/cli.md is correct on four of these five (it documents type, coreValues, friendlyName, and uniqueCaseInsensitive since #2800) — so the canonical architecture doc is now the more broken of the two references.
Suggested fix
Rewrite the SchemaField block at :41-51 from packages/nodespace-types/src/schema.rs:147-215 as the source of truth, and fix the field-type table at :140-147 to the real vocabulary. Worth stating the layer convention explicitly in the same edit (see the companion naming-conventions issue): field names are snake_case, field metadata keys are camelCase — the adjacency of "name": "due_date" and "uniqueCaseInsensitive": true in one payload is correct and is precisely what makes a wrong key hard to eyeball.
Found via
External agent session using the nodespace skill (same session that produced #2788, #2790, #2791). The agent never read this file — it worked from cli.md — so these five have not actually been exercised by a caller yet. Found by checking nodespace-docs for the same drift class after #2788.
Activity
malibio commentedon Sep 22, 2026
Fixed in nodespace-docs@0c18dac.
All five mismatches corrected against
packages/nodespace-types/src/schema.rsas source of truth:field_type→type,enum_values→coreValues/userValues, the non-existentselect/multi_select/stringvocabulary→enum/text,unique_case_insensitive→uniqueCaseInsensitive, and thedescription/friendlyNamesemantic inversion.Also added the fields the interface never listed at all (
friendlyName,extensible,localOnly,itemType,fields,itemFields) and fixed the Property Types table at :140-147, which repeated the fabricated vocabulary including two rows keyed onenum_values.Per the suggested fix, the layer convention is now stated in the same edit and cross-linked to the new naming-conventions section (#2810).