Repository navigation
Closed
Description
Overview
A person looking at a view cannot ask what it lists or what else it could filter on. This issue gives a saved query a bound chat: it describes the view in a sentence, answers what can be filtered and sorted on for its type, and changes the view when asked.
Problem Statement
- A query's meaning is in its filters, which are structured data. Nothing renders them in plain language.
- What a view can filter on is knowable exactly from the graph: the target type's fields and values, its relationships and what is reachable through them, and dates. A person has no way to see it.
- No seeded skill covers building or changing a view.
- A query stores no description of itself, unlike a play's rules.
Proposed Solution
- A bound chat on a saved query, opened from the query's view, on the general mechanism, beside the controls the view already has.
- Describer: one or two sentences saying what the view lists, rendered from its target type, filters, sorting and limit, with no model call. For example: "Open tasks that have a checklist and no unfinished blocker, by priority then age."
- A seeded skill, building and changing a view. It answers "what can I filter on?" for the view's target type: each field with its values, each relationship and what it reaches, the filter kinds and operators, dates including relative ones, and what the view can sort and group by. It explains why a node is or is not in the view when asked.
- Options: Explain this view; Add or change a filter; Change the sorting; Change what it lists; Change how it is shown.
- Explaining writes nothing. A change is described and confirmed before it is written.
Documentation
- ADR-100 §3, §4, §6 and §7 - explaining first, confirming before a change, the query case, and that direct controls stay
- relationship-paths.md - what a filter can reach
- ADR-091 - relative dates
- ADR-094 §1 and §9 - a saved query as a queue, and the
permittedfilter - node-types.md - the
querysheet (QueryFilter,SortConfig) - Updates:
components/seeded-nodes.md(the new skill)
Acceptance Criteria
- A query's view offers the chat; it opens on a plain-language description of what the view lists, then the options with "Explain this view" first
- The description is rendered from the definition for every filter kind and operator, including
relatedpaths, relative dates andpermitted, and reads correctly for each seeded query - Asked what can be filtered on, the agent lists the target type's fields with their values and its relationships with what they reach, from the graph, and writes nothing
- Asked why a named node is or is not in the view, the agent answers from the filters and the node
- A filter or sort added through the chat is valid and the view updates; an unknown field is refused with the fields that exist
- The view's existing direct controls still work
- 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 query 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/core/src/services/query_service/- filters, sorting, the seeded queries incore_queries.rspackages/nodespace-types/src/-QueryFilter,SortConfigpackages/desktop-app/src/lib/components/viewers/query-node-viewer.sveltepackages/agent/src/seeds/skills/research-and-search.md- the nearest existing guidance on filters
Implementation Details
- The describer is deterministic and has its own tests: one per filter kind, and the seeded queries as fixtures.
- A view of a subtype and a view of its base type show different fields for the same node; the skill says which type the view is of.
- Model-facing text is pinned by the prompt snapshot; regenerate with
UPDATE_GOLDEN=1and review the diff.
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)
Non-Goals
- Storing a description on a query
- Removing or redesigning the view's direct controls
Activity
malibio commentedon Oct 12, 2026
Frontend: 5897 passed (325 files)
Give a saved query a bound chat: describe the view, answer what it ca…