Skip to content

A chat bound to a saved query: explain the view, and answer what can be filtered on from the graph #3743

Closed

Description

@malibio

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 permitted filter
  • node-types.md - the query sheet (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 related paths, relative dates and permitted, 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:fix and bun run test:changed pass

Technical Specifications

Reference Files

  • packages/core/src/services/query_service/ - filters, sorting, the seeded queries in core_queries.rs
  • packages/nodespace-types/src/ - QueryFilter, SortConfig
  • packages/desktop-app/src/lib/components/viewers/query-node-viewer.svelte
  • packages/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=1 and review the diff.

Dependencies

Non-Goals

  • Storing a description on a query
  • Removing or redesigning the view's direct controls

Activity

  1. malibio commented on Oct 12, 2026

    @malibio
    CollaboratorAuthor

    Frontend: 5897 passed (325 files)

  2. self-assigned this
    on Oct 12, 2026
  3. added a commit that references this issue on Oct 12, 2026
    a85465b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions