Repository navigation
Description
Context
#2101 added SchemaField.friendly_name — a display-label field distinct from name (storage key) and description (now genuine LLM-facing prose). The core mechanism landed: the Rust/TS types, write-boundary defaulting in handle_create_schema/handle_update_schema (packages/core/src/schema/mod.rs), the Default derive, and every UI call site.
Deliberately out of scope for #2101: anything under packages/agent (a different engineer's lane per this repo's ownership convention). That means the agent-facing half of the friendly_name story — the part a model actually sees when authoring a schema — was not touched. This issue tracks that remaining half, per the scope-addition comment on #2101 ("Scope addition — agent-facing tool schemas and skill guidance").
What's missing
The underlying plumbing already accepts friendlyName end-to-end — SchemaField deserializes it from any caller's JSON (optional on input, defaulted at the write boundary when omitted) and the field threads through to storage correctly. What's missing is exposing this to the model:
-
create_schematool schema —packages/agent/src/local_agent/tools.rs(~:758, per-field properties ~:786-793). Today the per-fielddescriptionproperty is documented as"Field description"— circular, and now actively wrong oncedescriptionmeans LLM-facing prose rather than a label. Needs:- Add
friendly_nameto the per-field property list: the human-readable display label (e.g."Due date"), explicitly optional — the model should know omitting it is fine and it gets derived fromname. - Rewrite the
descriptionguidance to ask for real semantic content (meaning, purpose, usage, an example) rather than a short label. Encourage more detail, not less.
- Add
-
update_schematool schema —tools.rs(:833).:857-865) need the sameadd_fieldsitems (friendly_nameproperty and rewrittendescriptionguidance. The top-leveldescriptionparameter (~:844-847, the schema's description) should be double-checked for continued clarity now that field-leveldescriptionmeans something different. -
rename_fields(tools.rs~:877) — currently one operation that rekeys property data on every existing node. Under the split there are two conceptually different renames:- renaming
name— an identity change, still requires the existing data migration, still breaking fortitleTemplate/CEL/query-filter references - renaming
friendly_name— a display-only change, must NOT trigger any data migration
The tool needs to keep the model from conflating these — likely a way to update
friendly_namewithout touchingname(arename_fieldsitems array usesadditionalProperties: false, so any new parameter must be added explicitly). - renaming
-
Schema-authoring skill guidance —
packages/agent/src/skill_pipeline.rs(~:370). The retrieval-facing skill text covering "define fields" / "add a field" / "rename a field" needs to teach the three-field model, and specifically stop implyingdescriptionshould be short or label-like. -
Seeding caveat — skill nodes are DB-seeded and reconciled via the per-node versioned
_seedmechanism (NodeService::seed_nodes_from_templates, see06a94eee). Revised skill text needs a content-hash bump to actually reach an already-seeded install; verify this happens automatically via the existing template pipeline rather than assuming it does. -
Verify the plumbing, don't assume it — trace
handle_create_schema/handle_update_schemais actually invoked with the new tool-schema-exposedfriendly_nameparameter end to end once the tool schema changes land, including the write-boundary derivation path when a caller omits it (already covered by tests inpackages/core/src/schema/schema_test.rs, but worth a live/agent-path smoke check too).
Acceptance criteria
-
create_schematool schema exposesfriendly_nameper field, documented as the display label and as optional -
update_schema.add_fieldsexposesfriendly_namewith the same semantics - Field-level
descriptionguidance rewritten in both tools to ask for LLM-facing semantic content -
rename_fieldsdistinguishes identity rename (migrates data) from display rename (does not);additionalProperties: falserespected - Schema-authoring skill content teaches the three-field model
- Skill/guidance reseeding verified to actually reach an existing install (content-hash bump)
Why this is a separate issue
#2101 implements the full storage/UI mechanism and is independently complete and tested — a schema-editing tool exposing friendlyName will hit the same tested handlers whether the schema is updated today or after this issue lands. But packages/agent is a different engineer's lane, and this issue's scope (tool JSON schemas + skill guidance content) belongs there rather than bundled into #2101's diff.
Activity
mstomar125 commentedon Aug 19, 2026
Resolved in #2164.
Exposed `friendlyName` on `create_schema`/`update_schema.add_fields`' per-field properties, rewrote field-level `description` guidance to ask for real semantic content, and closed a genuine gap the issue's own acceptance criteria required: `rename_fields` now distinguishes an identity rename (`from` != `to`, migrates data) from a display-only relabel (`from` == `to`, `friendlyName` set, no data touched) — the two can also combine in one entry. This needed a small addition at the `packages/core` layer (`NodeService::update_schema_field_friendly_name`), since `rename_schema_field`'s own doc comment already pointed at "update_schema's field-update path" as where this belongs, but that path didn't exist yet. `packages/agent`'s side stays a pure pass-through, verified by tracing rather than assumed.
Added a new `RENAME_VS_RELABEL` skill rule (procedural — which operation for which intent, not argument shape) and regenerated `packages/skill/SKILL.md` from the same source. Verified the seed-reconciliation content hash covers the revised guidance text, so it reaches an existing install automatically.
Full detail and test coverage in PR #2164.