Repository navigation
Closed
Description
Overview
A person looking at a type has no way to ask what its fields mean, what may be added, or what a change would break. This issue gives a schema a bound chat: it describes the type, answers questions about it, and makes changes when asked, guided by a skill that knows the rules of schemas.
Problem Statement
- A schema is read as a raw definition. Nothing explains a field, a value list or what the type extends.
- What can be changed depends on the type: a built-in type is closed, and a user adds only their own prefixed fields and their own values; a type the user defined is open. A person finds this out from a rejected write.
- A stored field name is used by saved queries, plays and title templates. Renaming or removing a field breaks them with no warning.
- The seeded "schema creation" skill covers making a new type. Nothing covers understanding or changing an existing one.
Proposed Solution
- A bound chat on a schema, opened from the type's page, on the general mechanism.
- Describer: the type's name and what it is for; whether it is built in or the user's own, and what it extends; then each field with its type, allowed values, whether it is required, its default and its description. Built from stored data with no model call.
- A seeded skill, understanding and changing a type. It says which case the type is in before offering a change. It guides a well-formed field: a snake_case name, the right field type, a default where one is needed, a value list in place of free text where the values are known, a relationship in place of a list of ids, and no name that shadows a declared field.
- It checks what a change would break: before a rename or a removal it looks up the saved queries, plays and title templates that name the field and tells the user.
- Options: Explain this type; Add a field; Change a field; Add a value to a list; Remove a field.
- Explaining writes nothing. A change is described, with what it affects, and confirmed before it is written.
Documentation
- ADR-100 §3 to §5 - explaining first, confirming before a change, and the schema case
- ADR-086 - built-in types are closed
- ADR-063 and ADR-076 - a user's own fields and values on a built-in type
- ADR-078 -
extendsand inherited fields - creating-node-types.md - what a well-formed type is
- Updates:
components/seeded-nodes.md(the new skill), ADR-092 §8 or the seeded skills list where it is kept
Acceptance Criteria
- A type's page offers the chat; it opens on a description of the type and its fields, then the options with "Explain this type" first
- Asked what a field means, what values it takes or what the type extends, the agent answers from the schema and writes nothing
- On a built-in type the chat says what cannot be changed, and offers only a prefixed field or an added value; a request to change or remove a declared field is explained, not attempted
- Before a rename or a removal, the agent lists the saved queries, plays and title templates that name the field
- A field added through the chat is well formed, and a name that shadows a declared field is refused with the reason
- The skill reaches the agent by being pinned, not by search
- Verified on the built-in model with a prompt dump: the first reply for each option reaches the skill with the schema in what the model was sent
- Seed tests, the prompt snapshot and the eval scenarios the change touches pass;
bun run quality:fixandbun run test:changedpass
Technical Specifications
Reference Files
packages/agent/src/seeds/skills/schema-creation.md,skill-authoring.mdpackages/core/src/services/node_service/schema.rs-create_schema,update_schema, field rename and removalpackages/core/src/models/core_schemas.rs- field metadata the describer reads- The Node Types page and its components under
packages/desktop-app/src/lib/
Implementation Details
- Finding what names a field: saved queries (
filters,sorting), play rules (conditions and action params) andtitleTemplatetokens. Say what was searched. - Model-facing text is pinned by the prompt snapshot; regenerate with
UPDATE_GOLDEN=1and review the diff. - A removed field on a type with existing nodes: say what happens to their values before writing.
Dependencies
- Make the bound chat one mechanism: a type supplies its describer, skill and options #3741 (the general bound chat)
- A play's Edit chat: describe the play first, let the user ask about it, and route a reply with the message it answers #3738 (routing in a pinned chat)
Related Issues
- Refuse a schema field named after a declared field behind a prefix (custom:status beside status) #3726 (refusing a field name that shadows a declared field)
Non-Goals
- A visual schema editor
- Changing what may be changed on a built-in type
Activity
malibio commentedon Oct 13, 2026
Frontend: 5899 passed (326 files)
Give a schema a bound chat: explain the type, change it knowing what …